@manabouttools2021 if you’re sure the CSS/JS files from all these extensions are used only on the pages you mentioned, you can unload the files site-wide and apply the load exceptions.
However, if you want to apply the load exception for all product pages, you will need to use the Pro version to apply a RegEx that will load the CSS/JS files if the URI contains /product/. The RegEx rule would be #/product/#. That would work only if there’s a unique delimiter in the product page URL.
It would be easier if you can share your website here, so we could check it out or at least share the URIs (the URLs without the domain name) if you’re not comfortable mentioning your website’s URL here.
Thanks for the quick reply Gabe! Have a look at https://manabouttools.com
I think I have removed the /product/ from the url’s to shorten them.
Kent
@manabouttools2021 indeed, you have removed the /product/ from the URLs. There isn’t an option yet to make an exception and load a CSS/JS on all pages of a certain post type (in this case ‘product’). It’s in development and it will be implemented quite soon, but can’t tell you for sure when.
What you can do (and what I would do if I were in this situation) is unload the CSS/JS on the other pages (as many as you can) apart from the ones where they are needed. Think of a few key pages (e.g. the homepage, a certain landing page accessed by most of your new visitors) and apply the unloading there.
You can also unload those typical WooCommerce CSS/JS files from the plugins you mentioned on all pages of a certain post type which would be “page” or “post”, thus not having to go through each article in order to do the unloads 😉
Almost all the product url’s have a common phrase in the name. Maybe a wildcard could be applied here?
@manabouttools2021 for instance something like #digital-plan# could be used or you can use multiple RegEx rules (one per line). For this feature, you need to have the Pro version installed. No RegEx rules are available in the Lite version.
So Unload all the woo js and css for those extensions site wide with the exception RegEx rules:
#digital-plan#
#plans-bundle#
/cart/
/checkout/
/shop/
/my-account/
Looks like that works well.
Thank you!