BradBlogging
Skip to content
  • About
  • Contact
  • Advertise
  • What Is R.S.S and Why Subscribe To Us?
  • Free Premium WordPress Themes
Tweet
Share
« Stop Breaking Your WordPress Theme With Plugins – Use The If “Function-Exists” Option
Further Accelerate Your Blog – MaxCDN is offering 1TB of Bandwidth for $10 »

Save Money, Save Time – Use The World’s Largest Free CDN

Speed-McLaren

What if I told you that you could harness Google’s servers to load Jquery, Mootools, Scriptaculous or even Prototype on your blog? There are hundreds of servers spread throughout the world dedicated to loading your JavaScript that much faster. Google recently launched the “Google AJAX Libraries API” which allows you to use Google’s CDN to load popular JavaScript frameworks, many of which are in use by web developers today.

Every blog will use a JavaScript framework to “spice” up their blog with animation and usability (I happen to use Jquery). The only down side of using these libraries is the 50KB+ download that it takes up to deliver the framework to each visitor. Not only does loading a large JS file block parallel downloads, it won’t start loading other content until it is completely finished. However, Google’s free CDN eliminates this problem and allows you to use their cacheable libraries on your blog.

How to Harness Google’s AJAX Libraries API and CDN:

First, you need to call Google’s JSAPI file to allow Google to serve the right files on your blog:

<script src="http://www.google.com/jsapi"></script>

Now you are able to load any supported javascript library through Google:

<script> // Load jQuery google.load("jquery", "1.4.1");
</script>

You’re now serving the latest version of Jquery on your blog using Google’s Free CDN. Another benefit of using this CDN is the cacheable aspect of it – If a user has a cached version of Google’s Jquery, they won’t even have to re-download it when they visit your blog!

Save Money:

You save 50KB+ per visitor in bandwidth by outsourcing it to Google.

Save Time:

Well, technically it isn’t your time, but rather the visitors’. That just means they can read your articles quicker and convert into a fulltime reader! :twisted:

Related posts:

  1. Further Accelerate Your Blog – MaxCDN is offering 1TB of Bandwidth for $10
This entry was posted in Blog Loading Speed. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

Enjoy this post? Theres more to come, so click here to subscribe to our RSS Feed.

« Stop Breaking Your WordPress Theme With Plugins – Use The If “Function-Exists” Option
Further Accelerate Your Blog – MaxCDN is offering 1TB of Bandwidth for $10 »

16 Comments

  1. Artem Russakovskii
    Posted January 29, 2010 at 2:03 pm | Permalink

    Thanks for the tip, Brad. I wasn’t aware of the google ajax libs.

    Btw, “when they visitor” should be “when they visit”.
    .-= Artem Russakovskii´s last blog ..WordPress Developers – How Do You Make A Living [Poll + Discussion]? =-.

    Reply
    • Brad Ney
      Posted February 11, 2010 at 6:54 pm | Permalink

      Opps. Thanks Artem. :)

      Reply
  2. Jayce
    Posted February 6, 2010 at 12:54 am | Permalink

    Long time did not optimize my blog already. Does this speed up a lot?
    .-= Jayce´s last blog ..How to install Garmin Mobile XT for Windows Mobile Phone? =-.

    Reply
    • Brad Ney
      Posted February 11, 2010 at 6:54 pm | Permalink

      It speeds it up as the visitor doesn’t have to download the Jquery.

      Reply
  3. steve
    Posted February 14, 2010 at 4:56 am | Permalink

    Thanks for the speed up tip this looks great.
    .-= steve´s last blog ..Search Shared File Servers =-.

    Reply
  4. Josh
    Posted February 17, 2010 at 3:26 pm | Permalink

    Very cool, I didn’t know that this was possible. 50kb usually downloads quickly for most users, but every second saved is a good thing. Thanks for this.
    .-= Josh´s last blog ..Toronto Movers =-.

    Reply
    • Brad Ney
      Posted February 22, 2010 at 3:48 pm | Permalink

      50KB saved is better than serving the same file an additional time :)

      Glad you liked the tip.

      Reply
  5. Blog Design Studio
    Posted February 20, 2010 at 3:57 am | Permalink

    Indeed these chached javascripts are better choice because most of the users on the web will have that version of javascript already. This definitely speeds up things. Another good way to speed up things is by caching up everything from the webserver.

    Reply
    • Brad Ney
      Posted February 22, 2010 at 3:49 pm | Permalink

      Caching Images, JS and CSS is an excellent way to make any blog or website fast loading.

      Reply
  6. Technology Tips
    Posted March 23, 2010 at 3:14 pm | Permalink

    I use Amazon and will make a comparison with Google free CDN

    Reply
  7. Samrat P
    Posted April 4, 2010 at 2:12 pm | Permalink

    Looks like a better way to reduce the website load time.. Will give it a try!! BTW is there a good tool or website to check the load time of multiple inner pages of a blog?

    Reply
  8. sara
    Posted April 9, 2010 at 3:49 am | Permalink

    I wonder that is this trick will help blog for fast loading?

    Reply
  9. Allen
    Posted November 14, 2010 at 11:37 am | Permalink

    I will surely try this technique, Brad.. Thanks for the info..

    Reply
  10. Claudiu
    Posted December 20, 2010 at 8:30 am | Permalink

    Good tip! Another option would be to use Coral which is a free CDN. The idea is that while using Google’s servers to load jQuery or other big Javascript library out there, you’d still have some problems for making more requests than you actually need. I load everything from my own server and the minified, gzipped Javascript files only take up to 50kb, and they’re cacheable. This doesn’t solve the problem for visitors that live far from my server, but using Coral you can solve this issue as well.

    I would still recommend the Google CDN for websites where a server-side language isn’t available or where one of the available libraries is the only big script used.

    Good article!

    Reply
  11. sureshpeter
    Posted February 17, 2011 at 4:10 pm | Permalink

    hey mate, we can install wp plugin for loading ajax libraries, it works well :) and ur trick gave me idea to find out ..thanks a lot..

    Reply
  12. skykid
    Posted March 6, 2011 at 5:08 pm | Permalink

    Can you use this and another ( paid ) CDN at the same time ? Wish I knew where to insert the code you provided. I tried to put it in the header , but it only gave me one more thing to load

    Reply

2 Trackbacks

  1. By How to Create Efficient Jquery Tabs - Full Tutorial and XHTML | BradBlogging on May 18, 2010 at 4:12 pm

    [...] that remember include the JQuery library (ex. version 1.2.6 ) on our HTML document.Note, I just use GoogleAjax’s Javscript Library to serve my Jquery:<script [...]

  2. By Further Accelerate Your Website - MaxCDN's Amazing CDN Deal | BradBlogging on July 20, 2010 at 10:31 am

    [...] encourage you to utilize this offer.In the previous post, I talked about how to make use of Google’s Ajax Libraries CDN to serve Jquery, Mootools and other Javascript frameworks to your visitors, but to speed up [...]

Post a Comment

Click here to cancel reply.

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

CommentLuv badgeShow more posts

2285 RSS Subscribers!!

Subscribe today to receive any updates on this blog for free!

You'll also receive, "The Blog Manual" free of charge for being a subscriber which you can download at the bottom of each post.

 


Hosted by EZP.net

You might notice how quick this site loads. This is because of EZP.net's awesome web hosting services, from quick support to premium hardware, this company is one notch above the rest. You should use EZP.net to host your sites... They care about their customers.

  • Popular Posts
  • Categories

Popular Articles

  • Optimize Repeated Web Backgrounds with Photoshop
  • 16 Jquery Slideshow Scripts You Cannot Miss
  • How to Create your Own 4 Column Blog Footer - HTML/CSS Included!
  • How To: Reduce Your Blog's Bounce Rate

Blog Categories

  • Advertising & Blogs
  • Article Readability
  • Asides
  • Blog Comments
  • Blog Design
  • Blog Loading Speed
  • Contemplation
  • Featured Posts
  • How To
  • Increase Readers
  • Increase Traffic
  • Interviews
  • Jquery Tools
  • Previous Contests
  • Tutorials
  • Unique Widgets
  • Web Security
  • Website Reviews
  • Wordpress Coding
  • Wordpress Templates

About The Author

Brad Ney

I am a Wordpress enthusiast, part-time website designer, and enjoy using the latest technology via the internet for website promotion. I enjoy writing about startup websites, XHTML, CSS, Wordpress based on what I've learned in the industry.

01. Subscribe!

Click the shiny button for the RSS Feed. This will allow you to recieve each update either via email or via your favourite RSS Reader.
Beats checking the site for new updates!

02. Hand-Picked Articles

  • The Following Mentality Of The Internet
  • Blog Comment Spam
  • Increase Audience Participation with Blog Polls
  • 9 Jquery Slideshow Applications You Cannot Miss

Spend some time reading BradBlogging's most famous blog articles.

03. Start a Blog!

Take advantage of all the information here by using the resources below to start your website:

1. Top Notch Web Hosting

04. Contribute

Have a great idea for an article? Want something written about? Drop me a line!

Claim Your Free Blog Guide and Wordpress Template!

It's Brad Here and I just wanted to let you know that you are missing out on two free downloads I have for my readers. You can obtain these downloads for free by subscribing below - I promise that I will not spam and only send you updates from this blog.

Subscribe Today: