Autoptimize and Woocommerce (different set of js on every page)
-
Hi Frank,
thank you for this wonderful plugin and the work you’re doing! On one of my sites I ran into an issue though.
I noticed that when using Autoptimize in conjunction with Woocommerce it creates multiple JS files instead of just one for the whole site. In practice that means, Autoptimize actually adds unnecessary overhead, although you won’t notice that when analyzing single pages with pagespeed insights etc.
This is of course expected considering how the plugin works but I wonder if there might be a solution.
Woocommerce includes only the necessary js files for every page. That means, single product pages have other js files loaded than i.e. category pages or the cart page. A quick and dirty solution might be to force Woocommerce to load all of its scripts every time.
- The topic ‘Autoptimize and Woocommerce (different set of js on every page)’ is closed to new replies.