Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1145467

    Setting ‘load only used elements’ for the ‘Disabling of template builder elements’ does still load unused css an js files in the front end:

    /themes/enfold/config-templatebuilder/avia-shortcodes/blog/blog.css
    /themes/enfold/config-templatebuilder/avia-shortcodes/postslider/postslider.css
    /themes/enfold/config-templatebuilder/avia-shortcodes/buttons/buttons.css
    /themes/enfold/config-templatebuilder/avia-shortcodes/comments/comments.css
    /themes/enfold/config-templatebuilder/avia-shortcodes/gallery/gallery.css
    /themes/enfold/config-templatebuilder/avia-shortcodes/grid_row/grid_row.css
    /themes/enfold/config-templatebuilder/avia-shortcodes/slideshow_layerslider/slideshow_layerslider.css
    /themes/enfold/config-templatebuilder/avia-shortcodes/social_share/social_share.css
    /themes/enfold/config-templatebuilder/avia-shortcodes/tabs/tabs.css
    /themes/enfold/config-templatebuilder/avia-shortcodes/video/video.css
    /themes/enfold/config-templatebuilder/avia-shortcodes/gallery/gallery.js js
    /themes/enfold/config-templatebuilder/avia-shortcodes/slideshow_layerslider/slideshow_layerslider.js
    /themes/enfold/config-templatebuilder/avia-shortcodes/tabs/tabs.js
    /themes/enfold/config-templatebuilder/avia-shortcodes/slideshow/slideshow-video.js
    /themes/enfold/config-templatebuilder/avia-shortcodes/video/video.js
    /themes/enfold/framework/js/conditional_load/avia_google_maps_front.js

    This is the list of loaded files in the front end on a page that has been created with ALB but has no a single element in it. In fact it is an empty page. Footer widgets and socket are disabled. The site has no plugins installed and the enfold child theme has no modifications.

    Changing the setting to ‘manually manage loaded elements’ and checking all elements (disabling all of theme) makes no difference. Still those js and css files of the above listed elements get loaded.

    #1146480

    Hey Michael,

    Thank you for the inquiry.

    Some of the elements have to be disabled manually because they are still use by other elements or templates in the site. For example, the gallery is still loaded because it is required by the default gallery shortcode. Another example is the post slider css, which is still loaded despite the settings because the archive page requires its stylesheets when the blog layout is set to “grid”.

    Best regards,
    Ismael

    #1146555

    Hi Ismael

    thank you for your reply. I already thought this might be the reason but e.g. layerslider resources or google maps resources should not be loaded if you don’t use the elements. I think the list should be reviewed carefully.

    Kind regards

    Michael

    #1147086

    Hi,

    Thank you for the update.

    We will forward your concern to the team. For now, you can prevent the Google map script from loading using the “avf_load_google_map_api_prohibited” filter. Unfortunately, I’m not really sure why the “disabling_allowed” parameter is not included in the layer slider shortcode template. I’ll get back to you on that.

    Best regards,
    Ismael

    #1150569

    Ismael, you said “Some of the elements have to be disabled manually because they are still use by other elements or templates in the site.” Can you point us toward how to manually disable a builder block? Or, in my case, how to enable one when “Load only used elements” is selected? I’m using a block in a custom widget area in the header and the icon list in the widget doesn’t work when I have the “Disable Template Builder Elements” set to “Load only used elements”.

    Thanks!
    Kevin

    #1151154

    Hi,

    @kevinmcgillivray: There is a third option in the “Disabling of template builder elements” settings where you can manually select which element/s to disable on load. Have you tried that option?

    Best regards,
    Ismael

    #1151246

    I haven’t because, as much as possible, I’d like to try to let your system manage things. Is there some a way to force the one block to load on every page? Can you point me toward any code that might give me a hint at how to do it?

    #1151506

    Hi kevinmcgillivray,

    Unfortunately, it would require quite some time and customization of the theme to achieve this, so I am sorry to tell you that this is not covered by our support.

    Best regards,
    Victoria

    #1162212

    Hi!

    @kevinmcgillivray

    In theme options -> Performance -> Disable Template Builder Elements you have a selectbox:

    Scan Widgets for Theme Shortcodes

    Did you try to select “Scan Widgets”

    Cheers!
    Günter

Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.