Cannot use Cloudflare's Rocket Loader in manual mode with wp_enqueue_script Cannot use Cloudflare's Rocket Loader in manual mode with wp_enqueue_script wordpress wordpress

Cannot use Cloudflare's Rocket Loader in manual mode with wp_enqueue_script


I'm the engineer who maintains Rocket Loader. Unfortunately without direct access to the HTML of your script tags, there is currently no way for you to manually disable Rocket Loader for individual tags.

One potential solution is that you could use our Page Rules feature to selectively disable Rocket Loader on entire pages that match a basic pattern. If this sounds like it would be a suitable solution for you, log in to your CloudFlare account and check out "Page Rules."

This issue does give me a neat idea: we could provide a WordPress plugin that exposes a CloudFlare Rocket Loader-aware version of wp_enqueue_script. If that is the preferred way for WordPress developers to add scripts to the page, then it seems like that would be a handy plug-in for CloudFlare users.

Finally, if you feel up to it, it would be useful to know about any particular scripts that you know have a problem running through Rocket Loader. We're always trying to make it better and more compatible with the JavaScript out there, so if you could drop me an email at wco [ at ] cloudflare [ dot ] com I'd really appreciate it!


I actually work for CloudFlare. This option should work as well for having Rocket Loader ignore certain scripts in automatic mode.