Upgrading to the premium plugin allows you to unload unused styles & scripts on extra pages such as:
There are a plethora of techniques that are often used to defer parsing; however, the simple and preferred technique is to simply Defer loading of JavaScript until it is needed. If this technique isn’t appropriate to use on your page, it is next suggested that you use the <script async> attribute where appropriate, which prevents parsing from blocking the initial page load by deferring it until the browser’s UI thread is not busy doing something else. All these settings can be applied with Asset CleanUp Pro without writing any code.
Demo: https://www.gabelivan.com/items/wp-asset-cleanup-pro/
- 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
There are a plethora of techniques that are often used to defer parsing; however, the simple and preferred technique is to simply Defer loading of JavaScript until it is needed. If this technique isn’t appropriate to use on your page, it is next suggested that you use the <script async> attribute where appropriate, which prevents parsing from blocking the initial page load by deferring it until the browser’s UI thread is not busy doing something else. All these settings can be applied with Asset CleanUp Pro without writing any code.
Demo: https://www.gabelivan.com/items/wp-asset-cleanup-pro/