Rocket Loader


(Serdar) #1

Hi,

Why most of people don’t prefer using Cloudflare’s Rocket Loader feature?

I think it is very good option.


#2

It’s heavy script which load in the head. Then it makes AdSense loading super slow if not overidden by one.


(Serdar) #3

Yes it is not good option for Adsense or Analytics.
But it is 3kb only and save blogs from jquery.js which load in the head. (32kb minimum)

Otherwise, if we defer jquery.js without Rocket loader, it can cause js errors.


#4

Nope! :roll_eyes:

Can you share a screenshot if you are using it? I dont see anyone using it.

Potentially it can break any site.

For example, Discourse this forum frontend is mostly based on JavaScripts. I cannot use here.


(Serdar) #5

20


#6

Okay! May be it has improved a lot.

Before when it was in the Beta version, as per that I said.

Thanks for correcting. I will try it again!


(Serdar) #7

We should note that for other visitors; The rocket loader will break the Google Analytics results.

You’re welcome bro.


#8

This would be helpful to override certain script.

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

(Ajay Malik) #9

This features is great invention, it don’t even differ external script as well as inline script. Javascript prevent browser from loading html and css. so it load all js when whole page is loaded (HTML and CSS) and Now cloudflare place in very bottom of page before your closing body tag.
I recommend you to use this feature. if it causing problem you can prevent some script from using it