Rocket Loader is a great Cloudflare feature, so why does it recommend turning it off for WordPress?
The common, traditional, JavsScript page load optimizations aren’t good enough
On paper, this can be solved by to actions:
This is, indeed, a very common optimization. Many plugins offer these features exactly. But as Cloudflare write in an old post from 2011:
You can read more about them in the original post.
Rocket Loader to the rescue
This is why Cloudflare introduced Rocket Loader:
This sounds great. And even better, it is great. I’ve yet to encounter any issues with Rocket Loader. It achieves in a click of a button what other features can’t achieve, even after complex tweaking.
So far so good. But…
Wait, Cloudflare doesn’t want you to use Rocket Loader?
Cloudflare’s WordPress plugin has a button titled “Apply Recommended Cloudflare Settings for WordPress”. Wouldn’t you click it? You would. And you probably wouldn’t notice the button disables Rocket Loader, as it doesn’t announce it.
Not a bug, a feature
This is intentional, as the documentation mention. What the documentation fails to mention is why?
Nowhere else as well could I find the answer. So I decided to ask Cloudflare. After a while (a long while actually) I got this explanation:
There is a known caveat based on the experiences of other customers. Customers using CMS tools like WordPress who edit pages while Rocket Loader is enabled will end up hardcoding the injected Rocket Loader code.Cloudflare Technical Support Engineer, on “Why applying the recommended Cloudflare settings for WordPress disables Rocket Loader?”
A redundant feature
Frankly, I didn’t quite understand the mentioned issue, but I know I never encountered it. So, as far as my experience, I can conclude that the automatic disabling of Rocket Loader by Cloudflare when applying the recommended Cloudflare settings for WordPress is redundant. A shame, as it is such a great feature.
If you do run into issues, you can always tweak Rocket Loader, as the support engineer mentioned later in his reply.
It seems that Cloudflare’s WordPress plugin turning off Rocket Loader when applying the recommended settings is redundant. You should definitely turn it back on (and test your site, just to be on the safe side).
- What settings are applied when I click “Optimize Cloudflare for WordPress” in Cloudflare’s WordPress plugin? — Cloudflare Help Center
- What does Rocket Loader do? — Cloudflare Help Center