Wednesday, July 2, 2008

Google hosts prototype

Compressed versions of Prototype can now be served from Google

You can either link to the source code directly:

  <script type="text/javascript"

Or you can use Google’s API:

  <script type="text/javascript" src=""></script>
<script type="text/javascript">google.load("prototype", "");</script>

The Expires is set for 1 year. Which means users on your site will only need to download one 30kb file, once. Or, if they have visited another site using this method, it will already be in the cache.

Kudos to the Google team!
Blogged with the Flock Browser

No comments: