diff --git a/pages/cdn.md b/pages/cdn.md new file mode 100644 index 0000000..dfdf89c --- /dev/null +++ b/pages/cdn.md @@ -0,0 +1,53 @@ + + +## Using jQuery with a CDN + +[CDNs](http://en.wikipedia.org/wiki/Content_delivery_network) can offer a performance benefit by hosting jQuery on servers spread across the globe. This also offers an advantage that +if the visitor to your webpage has already downloaded a copy of jQuery from the same CDN, it won't have to be re-downloaded. + +### jQuery's CDN provided by [MaxCDN](http://www.maxcdn.com) + +To use the jQuery CDN, just reference the file directly from `//code.jquery.com` in the script tag (now supporting `https`): +``` + + +``` + +Starting with jQuery 1.9, [sourcemap files](http://blog.jquery.com/2013/01/09/jquery-1-9-rc1-and-migrate-rc1-released/#sourcemaps) are available on the jQuery CDN as well. If compressed files are included directly from the CDN as shown above, sourcemap-aware browsers such as Google Chrome will use them when you enable sourcemap support. + +To see all available files and versions, visit [http://code.jquery.com](http://code.jquery.com) + +### Other CDNs + +The following CDNs also host compressed and uncompressed versions of jQuery releases. Starting with jQuery 1.9 they may also host [sourcemap files](http://blog.jquery.com/2013/01/09/jquery-1-9-rc1-and-migrate-rc1-released/#sourcemaps); check the site's documentation. + +**Note that there may be delays between a jQuery release and its availability there. Please be patient, they receive the files at the same time the blog post is made public. Beta and release candidates are not hosted by these CDNs.** + +* [Google CDN](http://code.google.com/apis/ajaxlibs/documentation/index.html#jquery) +* [Microsoft CDN](http://www.asp.net/ajaxlibrary/cdn.ashx#jQuery_Releases_on_the_CDN_0) +* [JSDelivr CDN](http://www.jsdelivr.com/#!jquery) +* [CDNJS CDN](http://cdnjs.com/#jquery) + +## Past Releases + +All past releases can be found on the [jQuery CDN](http://code.jquery.com). Here are some commonly used recent versions: + +
| Version | Docs | Downloads |
|---|---|---|
| 2.0.2 | Release Notes | Minified Uncompressed |
| 1.10.1 | Release Notes | Minified Uncompressed |
| 1.9.1 | Release Notes | Minified Uncompressed |
| 1.8.3 | Release Notes | Minified Uncompressed |
| 1.7.2 | Release Notes | Minified Uncompressed |
| 1.6.4 | Release Notes | Minified Uncompressed |