Upgrading to the premium plugin allows you to unload unused styles & scripts on extra pages such as:
- Taxonomy pages such as default WordPress categories, tags, and custom created ones such as products’ categories from WooCommerce.
- Author pages (e.g. the page showing all posts published by a specific author, detected via is_author() function)
- Default WordPress Search Page
- WooCommmerce Search Page (which has the same settings as the actual shop page detected via is_shop() function)
- 404 Page (Not Found): this one has be as light as possible and it’s less likely that many of the CSS and JavaScript files that are needed here (detected via is_404() function)
- Date Archive Page: this is any page that retrieves articles filtered by the date, detected via is_date() function
Requires at least: 4.6
Tested up to: 6.3.2
Stable tag: 1.2.4.5
== Changelog ==
= v1.2.4..5 - 13 October 2023
* Fix: On some environments, the following error would show up when WP CLI is used: "PHP Fatal error: Uncaught Error: Call to a member function getScriptAttributesToApplyOnCurrentPage() on null"
* Fix: When the CSS/JS is managed in the front-end, the styling for the hardcoded assets was broken when the list was sorted via location
* Fix: Specific HTML code (unique signatures belonging to Asset CleanUp Pro) that was no longer relevant after optimizing the HTML source was not completely removed as it should be (in order to leave a cleaner HTML source code and not confuse the admin)
* Hardcoded assets: When an asset was moved from HEAD to BODY or vice-versa, make sure a notice is placed there in the hardcoded row (when managing the assets) that it had its position changed just like it's done for the enqueued assets
* Improvement: Removed unused PHP code from specific files
Demo: https://gabelivan.com/items/wp-asset-cleanup-pro/