Previously, jquery script library was introduced in the website as follows:
<SCRIPT type = "text/JavaScript" src = "/comm/jquery. Min. js"> </SCRIPT>
Sometimes we need to introduce other large script class libraries, such as prototype. Every time we introduce them, we have to consider how depressing customers are when they open the web page.
Now, Google and Microsoft provide CDN services for libraries such as jquery, prototype, and mootools. In this way, users can access these scripts through CDN wherever they visit the website, improving the loading speed, reduces loading latency and improves cache performance.
For example:
<SCRIPT type = "text/JavaScript" src ="Http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"> <
/SCRIPT>
We recommend that you use
Related links:
Google: http://code.google.com/apis/ajaxlibs/
Microsoft: http://www.asp.net/ajaxlibrary/cdn.ashx
Google provides the most APIs, which are commonly used, such as flash: swfobject.
Download jquery
There are two versions of jquery available for download: one is simplified and the other is uncompressed (for debugging or reading ).
Both versions can be downloaded from jquery.com.
CDN hosted jquery
A number of large statistics ISES provide hosted copies of jquery on existing CDN Networks
That are available for public use. Below are links to the CDN-hosted copies of jquery that you may hotlink.
- Google Ajax API CDN
- Http://ajax.googleapis.com/ajax/libs/jquery/1.6.3/jquery.min.js
- Google
Ajax CDN documentation
- Microsoft CDN
- Http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.6.3.min.js
- Ajax
CDN announcement, Microsoft
Ajax CDN documentation
- Jquery CDN (via media
Temple)
- Http://code.jquery.com/jquery-1.6.3.min.js (minified)
Version
- Http://code.jquery.com/jquery-1.6.3.js Source
Version
Database substitution
Google and Microsoft have good support for jquery.
If you do not want to store the jquery library on your computer, you can load the CDN jquery core file from Google or Microsoft.
Use Google CDN
Use Microsoft CDN