
-
AuthorPosts
-
May 13, 2025 at 9:48 pm #1484168
Compared to the 2025 theme, our product pages when you edit them in WP Admin take twice as long to load using the Enfold theme. I believe this is at least partially due to the many scripts that are called. We use ALB on pages and posts but not our shop and product pages. What would be the most effective way to not load all of the bells and whistles of Enfold to optimize the product editor page? If we dequeue the scripts we see errors even though the ALB has been disabled.
For example, here are all of the Enfold related scripts that get loaded on the product editor even with the ALB disabled.
// Dequeue Enfold styles/scripts
wp_dequeue_style('avia-style');
wp_dequeue_style('avia-custom');
wp_dequeue_style('avia-popup');
wp_dequeue_script('avia-default');
wp_dequeue_script('avia-shortcodes');
wp_dequeue_script('avia-modal');
wp_dequeue_script('avia_mega_menu');
wp_dequeue_script('avia_sidebar');
wp_dequeue_script('avia_advanced_form_elements');
wp_dequeue_script('avia_options_pages');
wp_dequeue_script('avia_media');
wp_dequeue_script('avia_media_wp35');
wp_dequeue_script('avia_colorpicker');
wp_dequeue_script('avia_media_advanced');
wp_dequeue_script('ls-global');
wp_dequeue_script('ls-wp-editor');
wp_dequeue_script('ls-addon-404');
wp_dequeue_script('ls-addon-maintenance');
wp_dequeue_script('avia-dotlottie-script');
wp_dequeue_script('avia_builder_js');
wp_dequeue_script('avia_element_js');
wp_dequeue_script('avia_template_save_js');
wp_dequeue_script('avia_modal_js');
wp_dequeue_script('avia_custom_elements_js');
wp_dequeue_script('avia_modal_dynamic_js');
wp_dequeue_script('avia_history_js');
wp_dequeue_script('avia_tooltip_js');
wp_dequeue_script('avia_tab_section_js');
wp_dequeue_script('avia_table_js');
wp_dequeue_script('avia_tab_toggle_js');
wp_dequeue_script('avia_media_js');
wp_dequeue_script('avia_gutenberg_script');
wp_dequeue_script('avia_google_maps_api_script');
wp_dequeue_script('avia-google-maps-api');
wp_dequeue_script('avia_google_recaptcha_front_script');
wp_dequeue_script('avia_admin_notices_script');
wp_dequeue_script('layerslider-utils');
wp_dequeue_script('kreatura-modal');
wp_dequeue_script('layerslider-slider-library');
We disabled the ALB button with the avf_alb_supported_post_types hook
add_filter(‘avf_alb_supported_post_types’, function ($supported_post_types) {
return array_diff($supported_post_types, [‘product’]);
}, 5);May 14, 2025 at 2:08 pm #1484230Hey Vada,
ALB is core part of Enfold and therefore is always loaded.
If you have good programming skills check ..\enfold\config-templatebuilder\avia-template-builder\php\class-template-builder.php around line 480.
But this is experimental only and not tested. But it could be a start for you not to load ALB in backend on certain pages.
Best regards,
Günter -
AuthorPosts
- You must be logged in to reply to this topic.