Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Downloading jQuery UI CSS from Google's CDN

I am planning on using Google to download the jQuery lib for both UI and Core. My question is, do they allow me to download the CSS for it or should I have to host it myself?

Also if I use Google to load how should I load other plugins? Can I compress all plugins together or should it be its own separate file?

like image 378
coool Avatar asked May 04 '09 14:05

coool


People also ask

What is jQuery Google CDN?

jQuery is a JavaScript library primarily designed with the purpose to make it easier to use JavaScript on our website. jQuery wraps many lines of JavaScript code into methods that we can call with a single line of code. Google provides CDN support for jQuery via the googleapis.com domain.

What is jQuery UI CSS?

jQuery UI includes a robust CSS Framework designed for building custom jQuery widgets. The framework includes classes that cover a wide array of common user interface needs, and can be manipulated using jQuery UI ThemeRoller.

What is latest version of jQuery UI?

jQuery UI 1.13. 0 released | jQuery UI Blog.


2 Answers

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 vader.

  • Themes Compressed: 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 vader.

like image 131
9 revs, 8 users 31% Avatar answered Sep 29 '22 04:09

9 revs, 8 users 31%


jQuery now has a CDN access:

code.jquery.com/ui/[version]/themes/[theme name]/jquery-ui.css


And to make this a little more easy, Here you go:

  • base: http://code.jquery.com/ui/1.9.1/themes/base/jquery-ui.css
  • black-tie: http://code.jquery.com/ui/1.9.1/themes/black-tie/jquery-ui.css
  • blitzer: http://code.jquery.com/ui/1.9.1/themes/blitzer/jquery-ui.css
  • cupertino: http://code.jquery.com/ui/1.9.1/themes/cupertino/jquery-ui.css
  • dark-hive: http://code.jquery.com/ui/1.9.1/themes/dark-hive/jquery-ui.css
  • dot-luv: http://code.jquery.com/ui/1.9.1/themes/dot-luv/jquery-ui.css
  • eggplant: http://code.jquery.com/ui/1.9.1/themes/eggplant/jquery-ui.css
  • excite-bike: http://code.jquery.com/ui/1.9.1/themes/excite-bike/jquery-ui.css
  • flick: http://code.jquery.com/ui/1.9.1/themes/flick/jquery-ui.css
  • hot-sneaks: http://code.jquery.com/ui/1.9.1/themes/hot-sneaks/jquery-ui.css
  • humanity: http://code.jquery.com/ui/1.9.1/themes/humanity/jquery-ui.css
  • le-frog: http://code.jquery.com/ui/1.9.1/themes/le-frog/jquery-ui.css
  • mint-choc: http://code.jquery.com/ui/1.9.1/themes/mint-choc/jquery-ui.css
  • overcast: http://code.jquery.com/ui/1.9.1/themes/overcast/jquery-ui.css
  • pepper-grinder: http://code.jquery.com/ui/1.9.1/themes/pepper-grinder/jquery-ui.css
  • redmond: http://code.jquery.com/ui/1.9.1/themes/redmond/jquery-ui.css
  • smoothness: http://code.jquery.com/ui/1.9.1/themes/smoothness/jquery-ui.css
  • south-street: http://code.jquery.com/ui/1.9.1/themes/south-street/jquery-ui.css
  • start: http://code.jquery.com/ui/1.9.1/themes/start/jquery-ui.css
  • sunny: http://code.jquery.com/ui/1.9.1/themes/sunny/jquery-ui.css
  • swanky-purse: http://code.jquery.com/ui/1.9.1/themes/swanky-purse/jquery-ui.css
  • trontastic: http://code.jquery.com/ui/1.9.1/themes/trontastic/jquery-ui.css
  • ui-darkness: http://code.jquery.com/ui/1.9.1/themes/ui-darkness/jquery-ui.css
  • ui-lightness: http://code.jquery.com/ui/1.9.1/themes/ui-lightness/jquery-ui.css
  • vader: http://code.jquery.com/ui/1.9.1/themes/vader/jquery-ui.css
like image 26
Dustin Woodard Avatar answered Sep 29 '22 06:09

Dustin Woodard