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:
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.October 9, 2019 at 11:52 am #1146480
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”.
IsmaelOctober 9, 2019 at 4:59 pm #1146555
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.
MichaelOctober 11, 2019 at 11:31 am #1147086
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.
IsmaelOctober 23, 2019 at 6:30 pm #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”.
KevinOctober 25, 2019 at 10:53 am #1151154
@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?
IsmaelOctober 25, 2019 at 4:42 pm #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?October 27, 2019 at 11:27 am #1151506
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.
VictoriaDecember 3, 2019 at 2:40 pm #1162212
You must be logged in to reply to this topic.