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.


  • 120 Users Found This Useful

Was this answer helpful?

Related Articles

Adding HTML to Site Builder

When adding HTML code/source in site builders be sure you are in HTML mode. There is often a...

Point my domain to my wix account

How can I point my domain name to my wix.com account?To set this up you will want to login to...

How can I change the default page / document?

Create a .htaccess file, include the below information into it and upload it to the public_html...

403 Error on POST

This can occur for several reasons: Be sure your file permissions are correct. If the file needs...

Lightweight Browser for Older and Slower Computers

Are you looking for a faster up to date browser in this current age for your older computer on...