-
AuthorPosts
-
October 6, 2019 at 3:44 pm #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.jsThis 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.
October 9, 2019 at 11:52 am #1146480Hey 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,
IsmaelOctober 9, 2019 at 4:59 pm #1146555Hi 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
October 11, 2019 at 11:31 am #1147086Hi,
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,
IsmaelOctober 23, 2019 at 6:30 pm #1150569Ismael, 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!
KevinOctober 25, 2019 at 10:53 am #1151154Hi,
@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,
IsmaelOctober 25, 2019 at 4:42 pm #1151246I 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?
October 27, 2019 at 11:27 am #1151506Hi 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,
VictoriaDecember 3, 2019 at 2:40 pm #1162212Hi!
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ünterMay 15, 2020 at 4:03 pm #1213321I can confirm that selecting “load only used elements” loads EVERYTHING! I tried it on a simple Privacy Policy page without elements and it loads ALL elements as if you selected “load all elements”.
Can you guys please fix this as it’s slowing down the site considerably and murdering the Google pagespeed score. See screenshot https://snipboard.io/AVCWd6.jpg
May 21, 2020 at 9:58 am #1214938 -
AuthorPosts
- The topic ‘Performance option builder elements’ is closed to new replies.