Google "AJAX Libraries" API
Google is now providing free hosting for various popular JS toolkits. jQuery, MooTools, Prototype and Dojo seem to be included at this point. The idea is that they provide servers which properly server up cache-headers (and bandwidth, I suppose) and the more people that use these URLs, the faster interactive “Web 2.0” pages will load. (Because the user will have already loaded and cached the libraries from another site using the Google API)
They providee a loading API:
<script src="http://www.google.com/jsapi"></script> <script> google.load("jquery", "1.2"); </script>
And a URL which provides the requested version and library:
Both methods allow you to provide as much specificity as you want for the version. Ask for version 1, and you'll get the latest in the 1 series… ask for 1.2.6 and you'll get that minor revision.
I'm not sure, is this a great idea… or another foothold for Google to take over the world. Or both?
Back to Blog Home »