jQuery UI now in Google’s AJAX Libraries API
August 13th, 2008 — Richard D. WorthGoogle announced recently that jQuery UI is the latest addition to their hosted AJAX Libraries API:
jQuery UI … is now hosted on our AJAX Libraries API! As usual, your users will get a performance boost when you use JQuery UI through our API, so get started by checking out the docs.
Now you can put one script tag on any page and benefit from cache, min, gzip, and google’s CDN:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.5.2/jquery-ui.min.js"></script>
and you’ve got all jQuery UI plugins and effects. Beauty.
August 13th, 2008 at 9:25 am
Refresh my memory, is an API key required to use the AJAX libraries. not very practical for developers who work on multiple sites, if so?
August 13th, 2008 at 10:33 am
No API key needed. See http://code.google.com/apis/ajaxlibs/ for an example.
Also, you can include the js file directly in a script tag (as I showed above), if that suits you.
October 2nd, 2008 at 9:16 pm
I like how Google allows the you to load the latest version via their google.load() release versioning wild card. Cant do that by directly including the js file though.
July 2nd, 2009 at 4:34 am
@Brinley Ang:
Actually, you can do a wild card by directly including the js file. If you want the latest 1.7 release, just use
http://ajax.googleapis.com/ajax/libs/jqueryui/1.7/jquery-ui.min.js
instead of
http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js
and it will always get the latest 1.7.X release. You can even do
http://ajax.googleapis.com/ajax/libs/jqueryui/1/jquery-ui.min.js
to get the latest 1.X release. The tradeoff is google will set the expires header to something like 1 hour instead of 1 year.
August 4th, 2009 at 7:56 am
what about the themes?
i guess now it uses the default theme, is there any possibility to use another (like “Dark Hive”)?
regards
September 10th, 2009 at 1:57 pm
Will the jQuery UI theme css files get hosted on the CDN as well? Maybe the standard ones, obviously not the custom ones you can setup. That would be really nice,.
January 20th, 2010 at 4:25 pm
@Elijah Manor: They UI theme files are now on the CDN. See links on http://jqueryui.com/development, bottom right
June 30th, 2010 at 6:53 pm
I think an API key is now required for even loading jQuery stuff.
August 9th, 2010 at 6:24 am
An API key is needed to use the google loader. Not needed if you just use a url directly.