Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jQuery UI no-theme CSS cdn

I'm looking for the no-theme CSS that you can get on the jQuery UI download page, http://jqueryui.com/download/.

From this other post https://stackoverflow.com/questions/1348559/are-there-hosted-jquery-ui-themes-anywhere, I would expect to find it at: http://ajax.googleapis.com/ajax/libs/jqueryui/1/themes/no-theme/jquery-ui.css

But, a file does not exist there. I'm looking for the no-theme CSS, no images or background-image properties.

The closest one is the base theme, but that has background-images properties for an image located at images/ui-bg_flat_0_aaaaaa_40x100.png. Base CSS on CDN: http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.1/themes/base/jquery-ui.css

Is there a URL for the latest version of no-theme jQuery UI CSS?

like image 540
wwwuser Avatar asked Jun 01 '13 23:06

wwwuser


People also ask

Is jQuery UI still supported?

Support for jQuery 1.7 has been dropped; jQuery 1.8 & newer remain supported. In this release, all individual module files as well as bundled jQuery UI copies produced by the Download Builder have all its code running in strict mode.

What is jQuery UI CSS?

jQuery UI is a curated set of user interface interactions, effects, widgets, and themes built on top of the jQuery JavaScript Library. Whether you're building highly interactive web applications or you just need to add a date picker to a form control, jQuery UI is the perfect choice.

Does jQuery UI include jQuery?

jQuery UI is a widget and interaction library built on top of the jQuery JavaScript Library that you can use to build highly interactive web applications.

What is the difference between jQuery and jQuery UI?

jQuery is the core library. jQueryUI is built on top of it. If you use jQueryUI, you must also include jQuery. jQuery Tabs preceded jQueryUI library.


1 Answers

No, there doesn't seem to be a "no-theme" CSS on Google or MS CDN. However, you could load the individual components (i.e. jquery.ui.button.css, jquery.ui.core.css etc.) instead of the combined jquery-ui.css. Just leave out jquery.ui.theme.css!

Google does not provide the individual components, but cdnjs does: http://cdnjs.com/libraries/jqueryui/

So, grab all the

//cdnjs.cloudflare.com/ajax/libs/jqueryui/1.10.3/css/base/minified/jquery.ui.(...).min.css

Except

//cdnjs.cloudflare.com/ajax/libs/jqueryui/1.10.3/css/base/minified/jquery.ui.theme.min.css

In fact, you don't even have to get all components (e.g. if you never use accordion, don't load it).

Note that "base" was renamed "Smoothness" in 1.10.2, but for whatever reason cdnjs has renamed it back to "base"...

However you lose out 2 things: more file requests (although total file size is smaller), and cacheing (vast majority of users will already have the Google version cached).

like image 50
Justin K Avatar answered Oct 01 '22 22:10

Justin K