Hummingbird doesn't show some files which google page speed insights show for minification

I am trying to optimize my site but there is something wrong. I can see Google page speed show 2 JS files for minification but can’t find the files in Hummingbird -> asset optimization. I have also tried rechecking the files but no luck.

  • Ash
    • WordPress Hacker

    Hello Jonathan

    HummingBird is hiding key Divi assets, as they were causing a lot of issues, when changed. So, the following scripts are hidden:

    et-builder-modules-global-functions-script, et-builder-modules-script, divi-custom-script, et-frontend-builder

    But if you are 100% sure, that will not break your site, you can comment out the following lines:

    add_filter( 'wphb_minify_resource', 'wphb_et_maybe_exclude_divi_essential_scripts', 10, 3 );
    add_filter( 'wphb_combine_resource', 'wphb_et_maybe_exclude_divi_essential_scripts', 10, 3 );
    add_filter( 'wphb_minification_display_enqueued_file', 'wphb_et_maybe_exclude_divi_essential_scripts', 10, 3 );

    in wp-hummingbird/core/integration/divi.php file. Though this is not recomemnded.

    Hope it helps! Please feel free to ask more questions if you have any.

    Have a nice day!



Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.