When it comes to speed of your WordPress site, there are numerous factors which can affect it. For starters, make sure that your site loads from the best WordPress hosting service. Then, you should run any of the 13 speed & performance tools which will tell you different things about your site. Among many, you will find different terms about scripts and styles, i.e. JS and CSS files on your site.
If there are more than a few files to be loaded, or if those files are bigger than they should be, your website will load slower. Now imagine what happens when you install dozens of themes and plugins where each pushes its own scripts and styles.
In a perfect world, all plugins and themes would be coded properly. All files would load only if they’re needed, and there wouldn’t be conflicts between themes and plugins. What a fairytale! Even if you’re not a developer, you have probably experienced JS and CSS errors on your blog.
Sometimes, just by unloading unnecessary scripts and styles, you can speed up your site tremendously. But the problem for a beginner blogger with no coding experience is where and how to find those files at first place. And even if you find the files, how do you quickly and safely unload them? With WP Asset CleanUp, that’s not a big deal.
WP Asset CleanUp
Now that you got the name of this fantastic free plugin, you’re just a few steps away from unloading unnecessary JS and CSS files from your site. After you install and activate it, you’re ready to see the power behind WP Asset CleanUp.
- Have minimum number of HTTP requests
- Reduce the HTML code of the page
- Make source code easier to scan
- Remove conflicts between plugins and themes
- Get better performance score on different online speed tests
- Rank better on Google because of a faster site
- Scan server access log files faster
Work in the frontend or the backend
Even without checking the plugin’s settings, you can start working on your site’s optimization from the backend. To see all the scripts and styles that load each time you open a post or a page (homepage as well) on your site, simply edit that post/page and scroll all the way down. If you have a lot of plugins, you might be very surprised how many files are there. But hey, don’t worry; that’s why you installed WP Asset CleanUp.
But if you are a more of a visual type, you will like the fact that the plugin works on the frontend as well. To enable the reports and settings in the frontend, please navigate to WP Asset CleanUp -> Settings and check the box next to “Manage in the Front-end” setting.
Now that you have browsed through the settings, it is time to remove those unnecessary files. We liked the fact that the plugin marks the WP core files with the exclamation icon. In most cases, you will not want to unload those files, so it’s easier to skip them and avoid errors. Before you unload any of the core files, make sure you know exactly why you are doing so.
Each file found by WP Asset CleanUp will have its source link, version (if available) and it will show you a file which is dependent on. For each of the files, you will be able to:
- Unload it everywhere
- Unload it on all pages of that particular post type
- Load it just on that page
Although the plugin allows you to load back scripts and styles through the same interface, we strongly suggest that you create a backup and, if possible, to work on a staging/local site.
If you decide to keep the plugin which will handle your scripts and styles, it is important to know that you won’t have to search for assets you already created the rules for. Instead, you simply have to navigate to WP Assets CleanUp -> Global Rules where you will find all the rules you have created so far. So, if you need to load that particular script or style once again, you don’t have to search for it through the posts and pages.
Manage scripts and styles on homepage
Just like on all post types, WP Asset CleanUp allows you to manage JS and CSS files on your homepage which is somewhat different than the rest of the pages. But don’t worry; again, you won’t have to wander around searching for a right place since the plugin will show you your homepage and your blog page.
To manage those pages, please navigate to WP Asset CleanUp ->Homepage. Once there, you will find links which you only need to open. Now, you will be able to load and unload scripts and styles just like you did for other posts and pages.
If you have gone through the pages, posts, and your homepage, you’re done. As you can see, the plugin is relatively straightforward to use, but you should use it carefully. Before you unload particular scripts and styles, make sure you know why are you doing so.
Hopefully, you will be able to find the assets which caused your site to load slower than it should. You can now put a smile on your face because you just made your site load faster (you should test the speed and performance once again to see the actual effect on your site).
Before you relax too much, we suggest that you do more for your site. For starters, see ten simple and quick ways to speed up your WordPress site for free. Then you can switch to PHP7 which will improve your website speed by 20%, and you can install WP Fastest Cache.
If you are using Google Maps, see how to make everything even faster by loading Google Maps correctly.
In the end, don’t forget to subscribe to First Site Guide because we have much more to show you about the speed of your website and WordPress in general.