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

What is a Top-Level-Domain (TLD)?

TLD stands for Top Level Domain. This includes any domain names which suffix is .com, .net, .org,...

How to use SharedSSL

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

SSL - Creating a CSR in Windows 2003

Creating the CSR IIS Windows 2003 or 2000 Server: From Administrative Tools, run the Internet...

Why is the server load status red?

The server load status will be red if the server is under a little more stress than usual. This...

Adding a Facebook Button

Facebook has a wonderful page on adding a Facebook image to your website complete with...