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

Enable Mod Rewrite

Enabling mod_rewrite   mod_rewrite is already enabled on all Ultra Web Hosting servers. You...

Error 401 Unauthorized

Error 401: Unauthorized   A 401 error means the server requires authentication to access the...

How do I cancel my account?

We are sorry to hear you would like to cancel your account! If there is anything we can do,...

osCommerce password reset

How to reset your osCommerce admin login... You can reset your osCommerce administrative login...

Point my domain to my wix account

Pointing Your Domain to a Wix Account   If you want to use Wix for your website while...



Save 30% on web hosting - Use coupon code Hosting30