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:
- The popular Contact Form 7 plugin load its JS and CSS on all the pages of your WordPress site . You can easily disable it everywhere with a few clicks and keep it enabled only on your contact page.
- Social media sharing plugins should only be loaded on your posts. You can easily disable it everywhere and load only on selected post types, or even custom post types.
- The Table of contents plugin (TOC) loads on all the pages of your WordPress site. With the help of assets manager, you can easily control where you want it loading.
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
.
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?
FAQS
- Does it work with caching plugins like WP Rocket? Yes.
- Does it work with plugins like Autoptimize? Yes.
- Does it work with hosts like Kinsta and WP Engine and server-level caching? Yes.
Enable Assets Manager
To enable it, simply click into the Perform plugin settings and click on the “Advanced” tab. Then enable the Assets Manager.
Using 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.
Browse any page/post from frontend
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.
Open from page/post listing in WordPress admin
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.