How to load WooCommerce CSS and JS only on shop-specific pages in WordPress – Sridhar Katakam

Categories Speed, WooCommerce

When you have a WooCommerce-powered shop in your WordPress site, assets like the following may be loading on all the pages of the site (depending on what plugins/services/theme are/is active): woocommerce-layout.css woocommerce-smallscreen.css woocommerce.css twenty-seventeen.css add-to-cart.min.js jquery.blockUI.min.js js.cookie.min.js woocommerce.min.js cart-fragments.min.js If you do not have a “Add to Cart” feature in…

Source: How to load WooCommerce CSS and JS only on shop-specific pages in WordPress – Sridhar Katakam

Leave a Reply

Your email address will not be published. Required fields are marked *