demosthenes.info

I’m Dudley Storey, the author of Pro CSS3 Animation. This is my blog, where I talk about web design and development with , and . To receive more information, including news, updates, and tips, you should follow me on Twitter.

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=http://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js>
  2. </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.

You must be signed up in order to leave comments.

web developer guide

featured comment

by Aisling Brock in New Business Card Design

what i'm reading

A Feast for Crows: A Song of Ice and Fire: Book Four
A Feast for Crows: A Song of Ice and Fire: Book Four

what i'm watching

Prometheus: Collector's Edition (Bilingual) [Blu-ray 3D + Blu-ray + DVD + Digital Copy]
Prometheus: Collector's Edition (Bilingual) [Blu-ray 3D + Blu-ray + DVD + Digital Copy]

what i'm playing

Borderlands
Borderlands

what i'm hearing

Planets
Planets

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.