Google and Microsoft provide CDN services for libraries such as jquery

Source: Internet
Author: User
Tags jquery cdn

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.