Hello everyone, welcome to my today's post on "jQuery Google CDN". In my last tutorial i was discussed about "how to create 3layers drop down menu using jQuery". Hope you enjoy that one. Today I am going to present a technique that How to load jquery scripts very quickly using google CDN. Last few years, Google have been hosting several JavaScript libraries like jQuery, Prototype,Scriptacoulous, Mootools, for a while now on Google Code and there are several advantages to loading it from them instead of from your server.

It saves on bandwidth, it loaded very quickly from Googles CDN and most importantly already be cached if the user has visited a site which delivers it from Google Code.
This makes a lot of sense. How many sites out there are serving up identical copies of jQuery that are not getting cached. Lets see how to add code in your website.
There are 2 methods are available to integrate CDN code in you website. You can also choose minified or non-minified version. On going development process we are using non-minified version and product release time we are using minified version. Minified version compressed in Gzip format.
First one is -

Here goes second method. You can just include a direct reference like this.

You can simply copy and paste this scripts in your web page and i am sure scripts work very well. I am also use this code in my several project as well as in this web site too. I love to use it.
http://demos.coolajax.net/jquery/google_cdn/scripts.txt
That's all for today. I hope you enjoyed it.Thanks for reading my tutorials.
Was this information useful? What other tips would you like to read about in the future? Share your comments, feedback and experiences with us by commenting below!
Like our site? Be a member of Coolajax fan page to get daily posts updates!
Tags:
how to load jQuery CDN, jQuery Google CDN, how to add CDN code, Google CDN, jQuery CDN, save bandwidth Google CDN, jQuery CDN Integration code
Total Read: 1166 Topics