If I was working in a fixed environment I could just place the required files directly on the server and I’d know they were there but for something like BlogSphere that anybody can download that’s just impossible to do.
One nice thing about hosted script libraries this is that if multiple applications, even if on different servers, are using the libraries then they will be cached in the end users browser, making them load faster for the end user and, of course, taking the traffic hit away from your server.
And it couldn’t be easier to use. Lets say I want to use MooTools V1.1.1 then all I do is add
<script src="http://www.google.com/jsapi" />
If I always want the latest version of the library I can just leave out the version number and the loader will know which one to provide and if I always want the latest in the version 1 codestream I just put a ‘1’ in the version field and it will load in the latest V1.x release.
For more information check out the Google AJAX Libraries API site.