The files are served with proper caching headers and fully compressed (GZIP), so you don’t have to do it yourself.
In Dion’s words:
- Developers won’t have to worry about getting caching setup correctly, as we will do that for you
- If another application uses the same library (much more likely), they there is a much better chance that it will be already caching on the users machine
- The network and bandwidth of the users systems will not be taxed.
You can either use Google’s API loader (see link to docs below), or just use direct URLs. For example the following code block will load in Protoype and script.aculo.us’ effects (ignore the linebreaks!):
<script src="http://ajax.googleapis.com/ajax/libs/prototype/220.127.116.11/prototype.js"></script> <script src="http://ajax.googleapis.com/ajax/libs/scriptaculous/1.8.1/effects.js"></script>
You can read up on this at the documentation site.Tweet