« Learn How to Think at Scale | Main | Strategy: Devirtualize for More Vroom »

Strategy: Let Google and Yahoo Host Your Ajax Library - For Free

Update: Offloading ALL JS Files To Google. Now you can let Google serve all your javascript files. This article tells you how to do it (upload to Google Code Project) and why it's a big win (cheap, fast, caching, parallel downloads, save bandwidth).

Don't have a CDN? Why not let Google and Yahoo be your CDN? At least for Ajax libraries. No charge. Google runs a content distribution network and loading architecture for the most popular open source JavaScript libraries, which include: jQuery, prototype,, MooTools, and dojo. The idea is web pages directly include your library of choice from Google's global, fast, and highly available network. Some have found much better performance and others experienced slower performance. My guess is the performance may be slower if your data center is close to you, but far away users will be much happier. Some negatives: not all libraries are included, you'll load more than you need because all functionality is included. Yahoo has had a similar service for YUI for a while. Remember to have a backup plan for serving your libraries, just in case.

Reader Comments (4)

Yay! Give google one more channel for tracking users. Analytics and adsense can be blocked without much impact on content. Block this and you break a site.

November 29, 1990 | Unregistered CommenterSITER

I didn't get that what you meant exactly overthere. How could adsense be blocked in this kind of a strategy.

----">underwater sea plants">Seaweed

November 29, 1990 | Unregistered Commenterfarhaj

I think the person meant to use ad blockers such as AdBlockPlus addon in Firefox to block the domain for AdSense, Analytics. These AJAX APIs use a different hostname so they can also be blocked as well. But blocking it will certainly break a website which depends on these libraries to function properly.

November 29, 1990 | Unregistered CommenterMacroPhotos.NET

Not everyone wants to give his data to google. Please do really think about it, when you take use of the Google CDN!
Privacy is important.

October 13, 2009 | Unregistered Commenterblacktea

PostPost a New Comment

Enter your information below to add a new comment.
Author Email (optional):
Author URL (optional):
Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>