Conditionally load scripts and styles
-
Hello.
I am trying to optimize my webpage and saw that Yith Wishlist scripts get loaded on every page. I want them to be loaded only on shop archive, category, single product and wishlist page.
So is there way to conditionally use dequeue_script and dequeue_style function for the rest of the pages?https://www.ads-software.com/plugins/yith-woocommerce-wishlist/
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Conditionally load scripts and styles’ is closed to new replies.