Question

jQuery 1.3.2 minified is 55.9K, and jQuery UI core itself has more than 110K and top of that each component adds more to this core.

I am wondering good reasons to use jQuery UI over plugins.

For example jQuery accordion plugin has only 3.8K, jQuery Tools which does accordion, tooltips, tabs, scrollable, overlay and expose has only 5.8K, jQuery drag and drop plugin has total 4.8K etc etc.

What is the benefits of using UI instead of using these plugins? Is it worth to add more than 110k+ for what you are using for?

If so, why do you use it?

Can you post your reasons why you use jQuery UI and why you don't use it?

Was it helpful?

Solution

jQuery UI doesn't have to be used as whole 110kb library. You can download only parts that you need, and then it would be a smaller 'custom build'.

I prefer using jUI because it is created by jQuery Team, so if there is a bug it will be for sure patched (custom plugins sometimes are not updated). And I think jQuery team will always create most optimized version, and if someone will do better, they will update their code, like it was with introducing Sizzle in 1.3.

OTHER TIPS

  • Better support.
  • Better consistency with jQuery in terms of API.
  • Documentation in the same place / same format.
  • No bloat.
  • Compatibility with new jQuery releases maintained.

I personally feel that JQuery UI is a bit bloated, especially the whole themes feature which makes things rather complicated. If you just need one thing, such as tabs, there's no problem with other "standalone" plugins.

Check out jQuery Tools. I've used it for a few things (tabs etc) and it's quite nice and super small. I also feel jQuery UI is kind of bloated. I'm using accordion, tabs, and datepicker for a project and that whole ui js is 80k !!! Not exactly lightweight.

jQuery tools unfortunately doesn't do widgets (like datepicker). It's a pretty small feature set, but for basic things like tabs, scrollable interfaces, overlays and tooltips, it's spot on!

Plugins are not mantained by jQuery team. jQuery UI is a set of basic plugins that other libraries usually implement in the core library, that are supported and mantained. Only a select hand of plugins made it into UI, a few special interaction like drag and drop, a few widgets and a few effects, from thousands of plugins.

It's SOOOOOOOO ugly. I just don't get it. I look at it at least once a year and all the buttons and controls are so insanely ugly I just don't understand why anybody would use it.

In comparison jQuery Mobile is just beautiful in comparison.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top