Whenever you have problems with one of the settings from the plugin on a particular page (e.g. that page is loading a plugin that is not compatible with Asset CleanUp Pro), you can instruct Asset CleanUp Pro to prevent applying certain features there. At the moment, the following options are available:
- Do not minify CSS files on this page
- Do not combine CSS files on this page
- Do not minify JS files on this page
- Do not combine JS files on this page
- Do not apply any front-end optimization on this page (this includes any changes related to CSS/JS files)
- Do not load Asset CleanUp Pro on this page (this will disable any functionality of the plugin)
The area is shown (see the print screen below) at the bottom of the CSS/JS management area for the homepage, posts, pages, and custom post types (e.g. WooCommerce product pages).
You might need to disable JS modification on the homepage or a particular page that is having errors in the browser console. Or, you might want to disable loading Asset CleanUp Pro completely. These options could help you.
How it works: “Do not apply any front-end optimization on this page (this includes any changes related to CSS/JS files)”
This option is like having the plugin deactivated on the page with a few exceptions:
– Any rules set in “Plugins Manager” will take effect
– Asset CleanUp Pro will load, but it will not take into consideration any settings, including any unload rules that might be set on that page
How it works: “Do not load Asset CleanUp Pro on this page (this will disable any functionality of the plugin)”
This option triggers very early (from the plugin’s MU plugin) and it will take effect in such a way that it will be like Asset CleanUp Pro is deactivated on the targeted page. The rules from “Plugins Manager” will also not trigger in comparison with the previous option’s effects that were just mentioned. If you’re sure you do not want the plugin to load on the targeted page (like it was never installed and activated), then this option is the best one to use.
This option also works in the same way as the restriction that is set here: “Settings” -> “Plugin Usage Preferences” -> “Do not load the plugin on certain pages” and explained in this post: http://www.assetcleanup.com/docs/how-to-exclude-the-plugin-from-loading-on-certain-pages/. Here you have more flexibility meaning that the rule will apply to multiple page, not just one. You can, for instance, prevent the plugin from loading on any page that contains /product/ and you know they belong to WooCommerce’s product pages.