In case you are not wanting to host your own jQuery or other library references Google and Microsoft provide free hosting for the libraries. There are some differences so you should look at both of them. Please see the links below.
A posting by Scott Guthrie that gives a bit more detail about Microsoft’s CDN.
Another interesting link, albeit dated is this one by Pingdom about CDN performance.
Today we will add a new jQuery theme to a new MVC3 project. I know I am still new to this, but I felt this one needed its own posting.
The first thing you need to do is obtain a jQuery theme. You don’t have to make a custom one, but if you do the same procedure applies. So head over to jQuery UI ThemeRoller and get yourself a theme. For me, I am going to get Eggplant. At the time of this writing the version I am downloading is 1.8.20. Also to keep things easy I am just pulling down the whole thing.
I am just starting on MVC and at the same time, jQuery. Probably not the smartest move, but since I believe I have the fundamentals of MVC3 I thought I would throw in some jQuery UI. Let me start by saying that it really isn’t all that hard, once you know what to change and where.
For this post I am just going to put what little I have done so far. I have been using Visual Studio 2010 in various flavors depending on where I am (Professional, Premium, and Ultimate). It should be enough to get most people started who may be in the same boat as I am. I am also not using a custom theme or anything, just the jQuery that comes with MVC3.