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 or add me on Google+.

web developer guide

my books

Book cover of Pro CSS3 AnimationPro CSS3 Animation, Apress, 2013

my projects

A Sass color keyword system for designers. Replaces CSS defaults with improved hues and more memorable, relevant color names.

CSSslidy: an auto-generated #RWD image slider. 3.8K of JS, no JQuery. Drop in images, add a line of CSS. Done.

tipster.ioAutomatically provides local tipping customs and percentages for services anywhere.

JQueryUI Theme Overview

JQuery CDNs

javascript / frameworks

Estimated reading time: 1 minute, 6 seconds

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 is shown in order to save space):

<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js">
</script>

(Note: you will need to add http: at the start of the URL if you trying to test the page locally. Also note that JQuery 2.0+ drops support for IE 6, 7 and 8; if support on those browsers is important to you, use ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js.)

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

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

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

<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/jquery-ui.min.js">
</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):

<link rel=stylesheet 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.

Further Resources

A nice overview of what common web development resources are hosted where can be found at the CDN Catalog, maintained by Andrew Davey

comments powered by Disqus

This site helps millions of visitors while remaining ad-free. For less than the price of a cup of coffee, you can help pay for bandwidth and server costs while encouraging further articles.