Google CDN for popular JavaScript libraries
Google is hosting versions of popular OpenSource JavaScript libraries (as a CDN–Content Delivery Network). The list of libraries include Prototype, jQuery, Scriptaculous, YUI and others. These can be directly linked to the Google URL. The advantages:
- Bandwidth saving: these files need not be hosted in local webservers, saving local bandwidth.
- Effective client side caching: if a person visits 100 sites using Prototype library version 1.6.0.3, and if all these sites link to the Google CDN, then the script will be downloaded to the user’s system only once.
Now the common fear among people: what if the URL changes? What happens when newer version of the libraries come up? Google’s promise (from the site):
Google works directly with the key stake holders for each library effort and accepts the latest stable versions as they are released. Once we host a release of a given library, we are committed to hosting that release indefinitely.