Google Hosted Libraries - Developer's Guide
The Google Hosted Libraries is a content distribution network for the most popular, open-source JavaScript libraries. To add a library to your site, simply use
<script> tags to include the library, as explained below.Audience
This documentation is designed for people familiar with JavaScript programming and object-oriented programming concepts. There are many JavaScript tutorials available on the Web.
Introduction
The Google Hosted Libraries provides your applications with stable, reliable, high-speed, globally available access to all of the most popular, open-source JavaScript libraries.
Libraries
To load a hosted library, copy and paste the HTML snippet for that library (shown below) in your web page. For instance, to load jQuery, embed the
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>nippet in your web page.
The following section lists all of the libraries currently hosted. We list the library name and all of the supported versions.
- AngularJS
- snippet:
<script src="//ajax.googleapis.com/ajax/libs/angularjs/
1.0.4/angular.min.js">
</script> - site: http://angularjs.org
- versions:
- Chrome Frame
- snippet:
<script src="//ajax.googleapis.com/ajax/libs/chrome-frame/
1.0.3/CFInstall.min.js">
</script> - site: https://developers.google.com/chrome/chrome-frame/
- versions:
- Dojo
- snippet:
<script src="//ajax.googleapis.com/ajax/libs/dojo/
1.8.3/dojo/dojo.js"></script> - site: http://dojotoolkit.org/
- versions:
- Ext Core
- snippet:
<script src="//ajax.googleapis.com/ajax/libs/ext-core/
3.1.0/ext-core.js">
</script> - site: http://www.sencha.com/products/extjs/
- versions:
- jQuery
- snippet:
<script src="//ajax.googleapis.com/ajax/libs/jquery/
1.9.1/jquery.min.js">
</script> - site: http://jquery.com/
- versions:
- note: 1.2.5 and 1.2.4 are not hosted due to their short and unstable lives in the wild.
- jQuery UI
- snippet:
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/
1.10.1/jquery-ui.min.js"></script> - site: http://jqueryui.com/
- versions:
- note: This library depends on jQuery. You must also load jQuery before loading this
module. Version 1.8.3 is not hosted due to its short life, and the alias1.8.3actually loads 1.8.4.
- MooTools
- snippet:
<script src="//ajax.googleapis.com/ajax/libs/mootools/1.4.5/
mootools-yui-compressed.js"></script> - site: http://mootools.net/
- versions:
- Prototype
- snippet:
<script src="//ajax.googleapis.com/ajax/libs/prototype/
1.7.1.0/prototype.js"></script> - site: http://prototypejs.org/
- versions:
- script.aculo.us
- snippet:
<script src="//ajax.googleapis.com/ajax/libs/scriptaculous/
1.9.0/scriptaculous.js"></script> - site: http://script.aculo.us/
- versions:
- note: This library depends on
Prototype. Before loading this module, you must load Prototype.
- SWFObject
- snippet:
<script src="//ajax.googleapis.com/ajax/libs/
swfobject/2.2/swfobject.js"></script> - site: http://code.google.com/p/swfobject/
- versions:
- WebFont Loader
- snippet:
<script src="//ajax.googleapis.com/ajax/libs/
webfont/1.1.2/webfont.js"></script> - site: https://developers.google.com/webfonts/docs/webfont_loader
- versions: