You can use CDN and have Intellisense support in Visual Studio. There are two ways to do this:
Add the Intellisense link to the *vsdoc.js file, which is located on the CDN. Go to Tools | Options Tools | Options :

Note that you will need to record for each *vsdoc.js you want to use.
- If you know that the
*vsdoc.js file is in the same directory as the js file on the CDN (for example, on ASP.NET CDN) and you are using MVC, you can simply update your _references.js file to reflect this:
/// <reference path="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.10.0.js" />
If you need help with _references.js, see my blog post here .
Be sure to update the link to your web page (or _Layout.cshtml) to actually use the CDN. Please note that the js path you use for your web pages does not have to match your Intellisense link (of course, you obviously want them to be the same version)!
<!DOCTYPE html> <html> <head> <title>@ViewBag.Title</title> </head> <body> <div id="body"> @RenderBody() </div> <script src="@Url.Content("http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.js")" type="text/javascript"></script> @RenderSection("scripts") </body> </html>
NOTE. The above examples assume that you are not using ASP.NET 4.5 binding or using CDN features such as path mirroring and reverse proxies. I assume that if you use these functions, you know what needs to be done to make them work.
source share