Prevent CloudFlare from Loading a js or Script

Sometimes CloudFlare / Rocket Loader can have problems with a script and hose it up. To have CloudFlare ignore a script try using the following flag which often resolves the issue:




Where as data-cfasync="false" is what you add to the script line.

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.


  • 122 Users Found This Useful

Was this answer helpful?

Related Articles

Why does it show the Ultra Web Hosting home page when I go to my site?

There are several reasons for this. Ensure you do not have https at the beginning of your...

What is the location of curl?

Curl is located @ /usr/bin/curl

How to use SharedSSL

SharedSSL is now available with our Ultra Unlimited. It is not as professional looking as having...

Mounting Samba Share in Linux for Startup

The following may be used to mount a samba share via your /etc/fstab file for bootup on...

Some visitors in China and Russia cannot reach my website

Some networks known for abusive activity such as hacking in countries such as China, North Korea...