Now, We have introduced Assets Manager in the Perform plugin for WordPress. This feature allows you to disable assets (i.e JS and CSS) on a per page/post basis.
This is very powerful feature which can drastically lower the burden of assets on each page and increase the speed on your WordPress sites (especially your homepage).
A few examples of what this plugin can be used for:
Pro Tip: If you’ve upgraded to WordPress 5.0 or later but aren’t using the Gutenberg block editor. Then, there are two additional front-end scripts loaded site-wide which you can disable: /wp-includes/css/dist/block-library/style.min.css and /wp-includes/css/dist/block-library/theme.min.css.
/wp-includes/css/dist/block-library/style.min.css
/wp-includes/css/dist/block-library/theme.min.css
You can utilize assets manager to do lots of optimizations on your WordPress site in addition to caching. On some of our sites, we instantly decreased our HTTP requests on our homepage by over 10! That’s Great, Isn’t it?
To enable it, simply click into the Perform plugin settings and click on the “Advanced” tab. Then enable the Assets Manager.
Once you enable the Assets Manager, There are two ways to open Assets Manager screen to manage the assets on any page/post of your WordPress site.
You will need to browse to any page or post of your WordPress site, and it will then show in the toolbar of your site. We recommend browsing to your homepage and starting there.
You can go to any post/page admin listing or any custom post type admin listing. Then, click on “Manage Assets” link in the quick actions area of each post listed in any custom post type as shown in below screenshot.
Can You Disable External Scripts and Styles?
Yes. You can disable external scripts and styles. However, they must be enqueued properly in WordPress. So this depends on the implementation of the external script on your site.