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
  2. Optimize “CSS Repeated” Background Images In Photoshop
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.

9 Comments

  1. 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]? My ComLuv Profile

  2. 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? My ComLuv Profile

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

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

  3. 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 My ComLuv Profile

  4. 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 My ComLuv Profile

    • 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.

  5. 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.

    • 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.

Post a Comment

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 Enabled

686 RSS Subscribers

Subscribe today to recieve 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.

 


Blog Advertisers

Recent Comments

  • Jonny said: As usual you are right Brad I think I should pay more attention to headlines looking back at some...

  • SEO said: Exactly proper marketing can get an article attention, one of proper marketing encompasses the...

  • Ganesh Iyer said: Apart from having an interesting title, the content of the article should be absorbing. This...

  • George Angus said: Brad, Great stuff. Looking forward to the next in the series. Headlines (titles) are...

  • LittleWebThings said: Many of these entries have been useful to me over the years! Thanks for creating this...

  • 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.

    Reader Poll

    • Are you a...

      View Results

      Loading ... Loading ...