Google CDN: Google hosting YUI files on ajax.googleapis.com

Google is helping many JavaScript library projects host their builds on the Google AJAX Libraries API. Google continues it’s commitment to helping out by adding the Yahoo UI to the growing list of supported JavaScript libraries, that apart from providing a central distribution point for these libraries, help in saving the bandwidth cost. Now, you can […]

Google is helping many JavaScript library projects host their builds on the Google AJAX Libraries API. Google continues it’s commitment to helping out by adding the Yahoo UI to the growing list of supported JavaScript libraries, that apart from providing a central distribution point for these libraries, help in saving the bandwidth cost. Now, you can choose between yui.yahooapis.com and ajax.googleapis.com when you evaluate your hosting options for YUI files. We’ve added Google as an option in the CDN section of the Dependency Configurator; it’s easy to configure your implementation and switch the generated URLs from one source to the other.

There are two things to keep in mind in working with the Google CDN, particularly if you’re currently using Yahoo’s CDN:

  1. Combo-handling: Combo-handling (the on-the-fly aggregation of files to reduce HTTP requests) is supported on Yahoo’s CDN but not on Google’s;
  2. Versions: Google’s CDN contains the current version of YUI (2.6.0) and will get future versions as they become available; legacy versions of YUI are not available from the Google CDN.

More infoYUI Blog