Microsoft Ajax Content Delivery Network Assets

Warning

Production applications should not take a hard dependency on CDN assets. Applications should test for the CDN asset referenced, and use a fallback asset when the CDN is not available.

The Microsoft Ajax CDN has no SLA above and beyond using an Azure CDN.

Use this GitHub issue to report problems with the Microsoft Ajax CDN.

Table of Contents

ajax.microsoft.com renamed to ajax.aspnetcdn.com
Visual Studio .vsdoc Support
Using ASP.NET Ajax from the CDN
Using jQuery from the CDN
Using jQuery UI from the CDN
Third-Party Files on the CDN

jQuery Releases on the CDN
jQuery Migrate Releases on the CDN
jQuery UI Releases on the CDN
jQuery Validation Releases on the CDN
jQuery Mobile Releases on the CDN
jQuery Templates Releases on the CDN
jQuery Cycle Releases on the CDN
jQuery DataTables Releases on the CDN
Modernizr Releases on the CDN
JSHint Releases on the CDN
Knockout Releases on the CDN
Globalize Releases on the CDN
Respond Releases on the CDN
Bootstrap Releases on the CDN
Bootstrap TouchCarousel Releases on the CDN
Hammer.js Releases on the CDN
ASP.NET Web Forms and Ajax Releases on the CDN
ASP.NET MVC Releases on the CDN
ASP.NET SignalR Releases on the CDN

The Microsoft Ajax Content Delivery Network (CDN) hosts popular third party JavaScript libraries such as jQuery and enables you to easily add them to your Web applications. For example, you can start using jQuery which is hosted on this CDN simply by adding a <script> tag to your page that points to ajax.aspnetcdn.com.

By taking advantage of the CDN, you can significantly improve the performance of your Ajax applications. The contents of the CDN are cached on servers located around the world. In addition, the CDN enables browsers to reuse cached third party JavaScript files for web sites that are located in different domains.

The CDN supports SSL (HTTPS) in case you need to serve a web page using the Secure Sockets Layer.

The CDN hosts the following third party script libraries which have been uploaded, and are licensed to you, by the owners of those libraries:

The Microsoft Ajax CDN also includes the following libraries which have been uploaded by Microsoft:

  • ASP.NET Ajax
  • ASP.NET MVC JavaScript Files
  • ASP.NET SignalR JavaScript Files

Microsoft does not claim ownership of any third-party libraries hosted on this CDN. The copyright owners of the libraries are licensing these libraries to you. Any rights that you may have to download and use such libraries are granted solely by the respective copyright owners. Because these are not Microsoft libraries, Microsoft provides no warranties or intellectual property rights licenses (including no implied patent rights) for the third party libraries hosted on this CDN.

If you wish to submit your JavaScript library and your library is one of the top JavaScript libraries (as listed on http://trends.builtwith.com) or extensions/plugins to these libraries that are (a) popular; or (b) helpful for use on ASP.NET then please contact [email protected].

ajax.microsoft.com renamed to ajax.aspnetcdn.com

The CDN used to use the microsoft.com domain name and has been changed to use the aspnetcdn.com domain name. This change was made to increase performance because when a browser referenced the microsoft.com domain it would send any cookies from that domain across the wire with each request. By renaming to a domain name other than microsoft.com performance can be increased by as much to 25%. Note ajax.microsoft.com will continue to function but ajax.aspnetcdn.com is recommended.

Visual Studio .vsdoc Support

To use the .vsdoc files properly with Visual Studio 2008 you need to make sure that you have VS 2008 SP1 installed and the hotfix for vsdoc files installed. You can get these from here:

Visual Studio 2010 supports .vsdoc files without any additional patches.

Using ASP.NET Ajax from the CDN

When using ASP.NET 4, you can redirect all requests for ASP.NET framework scripts to the CDN. Retrieving scripts from the CDN instead of your local web server can substantially improve the performance of public ASP.NET websites.

Use the ScriptManager EnableCDN property to redirect all ASP.NET framework script requests to the Microsoft Ajax CDN:

<asp:ScriptManager
    ID="ScriptManager1"
    EnableCdn="true"
    Runat="Server" />

Using jQuery from the CDN

You can use jQuery scripts hosted on CDN in your Web application by adding the following script element to a page:

<script src="https://ajax.aspnetcdn.com/ajax/jquery/jquery-1.9.0.js"></script>

The CDN also includes the minified version of the jQuery script, which you can get using the following element:

<script src="https://ajax.aspnetcdn.com/ajax/jquery/jquery-1.9.0.min.js"></script>

To allow your page to fallback to loading jQuery from a local path on your own website if the CDN happens to be unavailable, add the following element immediately after the element referencing the CDN:

<script>
  // Fallback to loading jQuery from a local path if the CDN is unavailable
  (window.jQuery || document.write('<script src="/scripts/jquery-1.9.0.min.js"><\/script>'));
</script>

The following sample page uses the CDN version of the jQuery library (with fallback to a local copy) to display the contents of a div element when a button is clicked.

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>jQuery from Microsoft AJAX CDN</title>
</head>
<body>
    <button id="btn">Show Message</button>
 
    <div id="message" style="display:none">         
        <h1>Hello from jQuery!</h1>         
    </div>
 
    <script src="https://ajax.aspnetcdn.com/ajax/jquery/jquery-1.9.0.min.js"></script>
    <script>
        // Fallback to loading jQuery from a local path if the CDN is unavailable
        (window.jQuery || document.write('<script src="/scripts/jquery-1.9.0.min.js"><\/script>'));
    </script>
    <script>                
        function domReady() {
            $('#btn').click( showMessage );
        }
        
        function showMessage() {
            $('#message').fadeIn('slow');
        }
        
        $( domReady );
    </script>
</body>
</html>

You can learn more about jQuery and download a local copy of jQuery by visiting the jQuery Web site.

Using jQuery UI from the CDN

The CDN also hosts the jQuery UI library. The jQuery UI library includes a rich set of widgets and effects that you can use in your ASP.NET applications. For example, the following page illustrates how you can use the jQuery UI Datepicker in the context of an ASP.NET Web Forms application to display a pop-up calendar:

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="TestjQueryUICDN.WebForm1" %>
<!DOCTYPE html >
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Using jQuery UI from the CDN</title>
    <link rel="Stylesheet" href="https://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.10/themes/redmond/jquery-ui.css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>    
        <asp:TextBox ID="txtStartDate" ClientIDMode="Static" runat="server" />
    </div>
    </form>
    <script src="https://ajax.aspnetcdn.com/ajax/jquery/jquery-1.8.0.js"></script>
    <script src="https://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.22/jquery-ui.js"></script>
    <script>
        $("#txtStartDate").datepicker();
    </script>
</body>
</html>

When you move focus to the TextBox using your keyboard, a calendar is displayed:

Popup calendar created with Datepicker

Notice that you must include three files from the CDN in the code above:

  • The jQuery library — The jQuery UI library depends on the jQuery library. You must add the jQuery library to your page before you add the jQuery UI library.
  • The jQuery UI library — The jQuery UI library contains all of the jQuery UI effects and widgets such as the Datepicker widget used in the page above.
  • A jQuery UI theme — The jQuery UI supports different themes. The page above includes a link to a CSS file to import the Redmond theme.

All of the standard jQuery UI themes are hosted on the CDN. Visit this page to view thumbnails for each theme.

To learn more about the jQuery UI library, visit the official jQuery UI website.

Third-Party Files on the CDN

The CDN hosts some of the most popular third party JavaScript libraries. Microsoft does not claim ownership of any third-party libraries hosted on this CDN. The copyright owners of the libraries are licensing these libraries to you. Any rights that you may have to download and use such libraries are granted solely by the respective copyright owners. Because these are not Microsoft libraries, Microsoft provides no warranties or intellectual property rights licenses (including no implied patent rights) for the third party libraries hosted on this CDN.

jQuery Releases on the CDN

The following releases of jQuery are hosted on the CDN:

jQuery version 3.7.1

jQuery version 3.7.0

jQuery version 3.6.4

jQuery version 3.6.3

jQuery version 3.6.1

jQuery version 3.6.0

jQuery version 3.5.1

jQuery version 3.5.0

jQuery version 3.4.1

jQuery version 3.4.0

jQuery version 3.3.1

jQuery version 3.2.1

jQuery version 3.2.0

jQuery version 3.1.1

jQuery version 3.1.0

jQuery version 3.0.0

jQuery version 2.2.4

jQuery version 2.2.3

jQuery version 2.2.2

jQuery version 2.2.1

jQuery version 2.2.0

jQuery version 2.1.4

jQuery version 2.1.3

jQuery version 2.1.2

jQuery version 2.1.1

jQuery version 2.1.0

jQuery version 2.0.3

jQuery version 2.0.2

jQuery version 2.0.1

jQuery version 2.0.0

jQuery version 1.12.4

jQuery version 1.12.3

jQuery version 1.12.2

jQuery version 1.12.1

jQuery version 1.12.0

jQuery version 1.11.3

jQuery version 1.11.2

jQuery version 1.11.1

jQuery version 1.11.0

jQuery version 1.10.2

jQuery version 1.10.1

jQuery version 1.10.0

jQuery version 1.9.1

jQuery version 1.9.0

jQuery version 1.8.3

jQuery version 1.8.2

jQuery version 1.8.1

jQuery version 1.8.0

jQuery version 1.7.2

jQuery version 1.7.1

jQuery version 1.7

jQuery version 1.6.4

jQuery version 1.6.3

jQuery version 1.6.2

jQuery version 1.6.1

jQuery version 1.6

jQuery version 1.5.2

jQuery version 1.5.1

jQuery version 1.5

jQuery version 1.4.4

jQuery version 1.4.3

jQuery version 1.4.2

jQuery version 1.4.1

jQuery version 1.4

jQuery version 1.3.2

jQuery Migrate Releases on the CDN

The following releases of jQuery Migrate are hosted on the CDN:

jQuery Migrate version 3.0.0

jQuery Migrate version 1.2.1

jQuery Migrate version 1.2.0

jQuery Migrate version 1.1.1

jQuery Migrate version 1.1.0

jQuery Migrate version 1.0.0

jQuery UI Releases on the CDN

The following releases of the jQuery UI library are hosted on this CDN. Click each link to see the actual list of files.

jQuery Validation Releases on the CDN

The following releases of the jQuery Validation plugin are hosted on this CDN. Click each link to see the actual list of files.

jQuery Mobile Releases on the CDN

The following releases of the jQuery Mobile library are hosted on this CDN. Click each link to see the actual list of files.

jQuery Templates Releases on the CDN

The following releases of the jQuery Templates plugin are hosted on this CDN. Click each link to see the actual list of files.

jQuery Cycle Releases on the CDN

The following releases of the jQuery Cycle plugin are hosted on this CDN. Click each link to see the actual list of files.

jQuery DataTables Releases on the CDN

The following releases of the jQuery DataTables plugin are hosted on this CDN. Click each link to see the actual list of files.

Modernizr Releases on the CDN

The following releases of Modernizr are hosted on the CDN:

JSHint Releases on the CDN

The following releases of JSHint are hosted on the CDN:

Knockout Releases on the CDN

The following releases of Knockout are hosted on the CDN:

Globalize Releases on the CDN

The following releases of Globalize are hosted on the CDN:

Globalize version 1.0.0

Globalize version 0.1.1

Respond Releases on the CDN

The following releases of Respond are hosted on the CDN:

Respond version 1.4.2

Respond version 1.4.1

Respond version 1.4.0

Respond version 1.3.0

Respond version 1.2.0

Bootstrap Releases on the CDN

The following releases of getbootstrap.com bootstrap are hosted on the CDN:

Bootstrap version 5.2.3

Bootstrap version 4.6.0

Bootstrap version 4.5.2

Bootstrap version 4.5.0

Bootstrap version 4.4.1

Bootstrap version 4.3.1

Bootstrap version 4.2.1

Bootstrap version 4.1.1

Bootstrap version 4.0.0

Bootstrap version 3.4.1

Bootstrap version 3.4.0

Bootstrap version 3.3.7

Bootstrap version 3.3.6

Bootstrap version 3.3.5

Bootstrap version 3.3.4

Bootstrap version 3.3.2

Bootstrap version 3.3.1

Bootstrap version 3.3.0

Bootstrap version 3.2.0

Bootstrap version 3.1.1

Bootstrap version 3.1.0

Bootstrap version 3.0.3

Bootstrap version 3.0.2

Bootstrap version 3.0.1

Bootstrap version 3.0.0

Bootstrap version 2.3.2

Bootstrap version 2.3.1

Bootstrap TouchCarousel Releases on the CDN

The following releases of https://github.com/ixisio/bootstrap-touch-carousel Bootstrap TouchCarousel releases are hosted on the CDN:

Bootstrap TouchCarousel version 0.8.0

Hammer.js Releases on the CDN

The following releases of http://hammerjs.github.io/ Hammer.js releases are hosted on the CDN:

Hammer.js version 2.0.4

ASP.NET Web Forms and Ajax Releases on the CDN

The following releases of the ASP.NET Ajax Library are hosted on the CDN. Click each link to see the actual list of files.

ASP.NET MVC Releases on the CDN

The following ASP.NET MVC JavaScript files are hosted on this CDN:

ASP.NET MVC 5.2.3

ASP.NET MVC 5.1

ASP.NET MVC 5.0

ASP.NET MVC 4.0

ASP.NET MVC 3.0

ASP.NET MVC 2.0

ASP.NET MVC 1.0

ASP.NET SignalR Releases on the CDN

For SignalR, we recommend a 3rd party CDN such as <cdnjs> or UNPKG.

The following ASP.NET SignalR JavaScript files are hosted on this CDN:

ASP.NET SignalR 2.2.2

ASP.NET SignalR 2.2.1

ASP.NET SignalR 2.2.0

ASP.NET SignalR 2.1.0

ASP.NET SignalR 2.0.3

ASP.NET SignalR 2.0.2

ASP.NET SignalR 2.0.1

ASP.NET SignalR 2.0.0

ASP.NET SignalR 1.1.3

ASP.NET SignalR 1.1.2

ASP.NET SignalR 1.1.1

ASP.NET SignalR 1.1.0

ASP.NET SignalR 1.0.1

For information about the terms of use for the CDN, see Microsoft Ajax CDN Terms of Use.