What Is WP Rocket?
WP Rocket is another all in one toolbox that helps to improve the speed of your WordPress website. It optimises most areas of WordPress including the cache, files and database. There are a plethora of options in WP Rocket and it could be that you just install this over Asset Cleanup Pro, set it up, and it works with your files straight away.
This is because it also has CSS minification, and JS deferring capabilities but it does not have the fine tuning control and additional options that Asset Cleanup Pro has. Where it excels is it’s other toolset – browser caching, database and heartbeat control. What makes this the perfect partner for Asset Cleanup Pro is that the two work seamlessly together – and that’s what I would recommend you do.
Browser caching speeds your website up enormously. In simple terms, it is a ‘memory bank’ that remembers the last persons visit to your website. This ‘memory’ is then served up to the next visitor, thus negating the need for certain files to be redownloaded to construct the page. It is something I recommend you do for instant results.
WP Rocket is very simple to use. As usual I will present a video on how to use the software, and explain some of the terminology and recommendations to get the best out of the plugin.
WP Rocket Setup
WP Rocket is very easy to setup. Once it is installed, a huge amount of fail safe optimisations are taking place. If you do a pagespeed score test right before installing it, then taking one again right after it, you will see significant improvement in your pagespeed scores and load times straight away.
WATCH THE VIDEO
If you watch the WP Rocket video at the bottom of this page, you can see just how easy it is to setup and get going. In fact you could try installing this before Asset Cleanup Pro just to see if you need to individually optimise the pages. Just tick the boxes in WP Rocket that enables CSS to ‘combine’ and the JS to defer in the ‘Files’ section and just click save.
Remember to clear all caches, then right click in Chrome and click inspect. If you are seeing a little red box with a cross in it, its best to leave the JS settings in WP Rocket and let Asset Cleanup handle it. This is because having two programs to alter the JS loading of a website not only causes problems, but also slows it down.
All in, WP Rocket is one of the most productive plugins you can install for WordPress. I will explain a little below on how to set it up for pain free optimisation, and how each part of it works. The main thing is, watch the video, familiarize yourself with it, then you will suddenly realize it’s literally a two minute setup plugin.
What Is JS Delayed?
However be careful with this if you are using it for any theme based JS files. Delaying the loading of certain parts of a theme until user interaction can cause a website layout to break which just causes headaches. It can lead you trying to fix things elsewhere, which normally only compounds the problem.
I would recommend using this feature of WP Rocket for plugins only, and ones that are not central to the construction of a page. Plugin files that are central to page construction (like Sliders for example) will probably need to be loaded in as normal.
What About CSS?
WP Rocket Video Guide
The best way to describe the WordPress heartbeat is to say it’s a guardian looking out for changes. If you have a static site that never changes, turn it off. It can be quite server intensive if you have a lot going on in the website.
However, my recommendation is to reduce heartbeat activity rather than turn it off completely. This is because turning it off can break certain themes, or features of the website. Just reducing it from checking every 15 seconds to two minutes reduces the heartbeat load on the server 8 fold. In a world of marginal gains, every tweak matters!