How can I have Rocket Loader ignore my script(s) in Automatic Mode?

You can have Rocket Loader ignore individual scripts by adding the data-cfasync="false" attribute to the relevant script tag, for example:

      <script data-cfasync="false" src="/javascript.js"></script>      

Rocket Loader will still work for all other scripts.

Notes:

1. Adding this attribute within JS will not work to exclude the script from Rocket Loader.
2. The 'data-cfasync' attribute must be added before the 'src' attribute. 
3. Rocket loader will recognize the tag when either single or double quotes are placed around the attribute value. 

Alternative:

If Rocket Loader is only impacting a specific URL, then please look at using a PageRule to exclude that URL from optional performance features.

 

Still not finding what you need?

The CloudFlare team is here to help. 95% of questions can be answered using the search tool, but if you can’t find what you need, submit a support request.