My WordPress site just displays the preloader icon

Since WP Rocket v3.9 there is a chance that your WordPress website is no longer loading due to a change in the way that 'Delay Javascript Execution' works.
15 Jul, 2021

Why does my website only display the preloader icon after a WP Rocket plugin update?

The WP Rocket caching plugin is great for speeding up WordPress websites. The ‘Delay Javascript Execution’ option in versions of the plugin prior to v3.9 allowed website owners to add javascript files to an inclusion list. Only those files on the inclusion list would then have their execution delayed.

This solution meant that if you had a lot of javascript files, it was quite cumbersome to manually add the ones whose execution you wanted to delay.

So, starting from WP Rocket v3.9, the logic is now reversed so that switching the option on automatically delays the execution of all of your javascript files. This makes it much easier to achieve a great performance boost for your page loads, but it can introduce problems.

An example of this is with themes or plugins that enable a preloader spinner or loader icon. When activated, these display a preloader icon which disappears when the page content has fully loaded. These don’t offer a great user experience, as many users prefer to interact with a page before it has finished loading. Javascript controls this, and so if the script execution is delayed, then this will result in the preloader icon continuing to spin until the user interacts with the page. Not good!

So, the solution is either to deactivate the ‘Delay Javascript Execution’ option in WP Rocket, or, preferably, changing your theme or plugin options to deactivate the preloader.

Once you have done this, don’t forget to clear your cache again.

We use the WP Rocket plugin as part of our WordPress performance package. So we can help your site run faster. Please send us a contact form message below if you want a faster website.

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

You may also like…

Why choose WordPress – what’s the fuss?

Why choose WordPress – what’s the fuss?

We decided to become WordPress experts because we believe it to be a great, cost-effective platform for small- and medium-sized businesses. It’s packed full of functionality and a great content management system – in fact, WordPress started out as a blogging platform, but developed into much more.

Share This