Where do you include the jQuery library from? Google JSAPI? CDN?

Without a doubt I choose to have JQuery served by Google API servers. I didn’t go with the jsapi method since I don’t leverage any other Google API’s, however if that ever changed then I would consider it… First: The Google api servers are distributed across the world instead of my single server location: Closer … Read more

Downloading jQuery UI CSS from Google’s CDN

The Google AJAX Libraries API, which includes jQuery UI (currently v1.10.3), also includes popular themes as per the jQuery UI blog: Google Ajax Libraries API (CDN) Uncompressed: http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.js Compressed: http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js Themes Uncompressed: black-tie, blitzer, cupertino, dark-hive, dot-luv, eggplant, excite-bike, flick, hot-sneaks, humanity, le-frog, mint-choc, overcast,pepper-grinder, redmond, smoothness, south-street, start, sunny, swanky-purse, trontastic, ui-darkness, ui-lightness, and … Read more

Best way to use Google’s hosted jQuery, but fall back to my hosted library on Google fail

You can achieve it like this: <script src=”https://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js”></script> <script> window.jQuery || document.write(‘<script src=”/path/to/your/jquery”><\/script>’); </script> This should be in your page’s <head> and any jQuery ready event handlers should be in the <body> to avoid errors (although it’s not fool-proof!). One more reason to not use Google-hosted jQuery is that in some countries, Google’s domain name … Read more