Saturday, April 2, 2016

Activated CloudFlare's Rocket Loader for few of our Websites


Few years back I had published a post about activating the Content Delivery Network (CDN) "CloudFlare" for one of our Websites.

Recently I came to know that CloudFlare is providing a new option for improving the quick loading of the website. This new feature is named as Rocket Loader.


CloudFlare explains Rocket Loader as,

Rocket Loader is a general-purpose asynchronous JavaScript loader coupled with a lightweight virtual browser which can safely run any JavaScript code after window.onload.

Turning on Rocket Loader will immediately improve a web page's window.onload time (assuming there is JavaScript on the page), which can have a positive impact on your Google search ranking.

So, I thought of trying this Rocket Loader feature in  our websites. And, I activated this option for our news website RtoZ.org and our Motivational Quotes Website TheQuotes.Net

 This Rocket Loader feature is still in beta, so if you find any issue in loading/viewing our sites, let me know.

Right now, I am not seeing any issue in RtoZ,org. But I had noticed two issues in TheQuotes.net.

One is, because of this Rocket Loader, our Facebook Cover application was not working properly in TheQuotes.Net website.
So, I added data-cfasync=false in specific part of the script to exclude it from Rocket Loader.


And  the Second issue is, this page loading performance was degraded. According to pingdom that page was loaded within a second before activating Rocket Loader, but it took more than a second after activating Rocket Loader.
After viewing the page source I could understand that Rocket Loader was adding its own js files even if the page is not having any javascript files. So, obviously Rocket Loader is reducing the performance of this page which is not having any javascript. So, I decided to exclude this page also. But it seems we can not do it by adding  data-cfasync=false. So, I excluded it from Rocket Loader by adding a Page Rule from the CloudFlare account login. Now it is loading faster.




You can subscribe to our Email posts, and you can subscribe to our blog feed.
Read more ...


Thanks for visiting our blog


twitterrss facebook linkedin YouTube subscribe


Subscribe via email

Enter your email address: