demosthenes.info

A blog by Dudley Storey on , , , , , , and anything else that strikes his fancy.

featured articles

popular favourites

JQueryUI Theme Overview

JQuery CDNs

Some web developers know that Google, Microsoft and Yahoo host copies of popular frameworks on their Content Distribution Networks, and that using code that draws from these sources means that visitors to our websites will not have to download the scripts again, as they already have them cached (due to visiting other websites that use the same technique) which means faster download times for our web pages.

You can link to a particular version of a framework (the HTML5 version of the script tag shown in order to save space):

  1. <script src=//ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js></script>

JQuery itself also hosts the framework, distributed on Media Temple's CDN. You can link to the latest stable version by using:

  1. <script src=//code.jquery.com/jquery.min.js></script>

But few people know that Google also hosts the popular JQueryUI plugin:

  1. <script src=//ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/jquery-ui.min.js>
  2. </script>

Almost no-one, it seems, is aware that Google also hosts CSS themes for JQueryUI, which are necessary for elements generated by JQueryUI to appear correctly (again, HTML5 version shown):

  1. <link rel=stylesheet
  2. href=//ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/themes/base/jquery-ui.css>

Note that the CSS delivered from Google has not been minified: i.e. it still has comments, spaces, and line breaks. To get other themes, simply replace the word base in the URL with another theme, such as mint-choc, trontastic, ui-lightness, ui-darkness, or vader.

web developer guide

featured comment

by JoelB in Goodbye, JQuery Validation: HTML5 Form Errors With CSS3

what i'm reading

A Storm of Swords: A Song of Ice and Fire: Book Three
A Storm of Swords: A Song of Ice and Fire: Book Three

what i'm watching

Californication: The Third Season
Californication: The Third Season

what i'm playing

Mass Effect 3 Collector's Edition
Mass Effect 3 Collector's Edition

what i'm hearing

Dub FX
Dub FX

blogs

podcasts

no ads ever

This blog is free of advertising, and always will be.

creative commons licensed

The content of this blog is free to use in whatever way you wish under the Creative Commons license.