April 30 2011 Saturday

Dojo vs. jQuery: Can you compare?

I was talking about Javascript frameworks, especially jQuery and Dojo toolkits.

I just saw this. I didn't use jQuery, but such difference in builtwith.com stats was a great surprize for me:

This is the usage of jQuery:
Image:Dojo vs. jQuery: Can you compare?

And this is the usage of Dojo Toolkit:

Image:Dojo vs. jQuery: Can you compare?

I know those are apples and oranges but wow!
Serdar Basegmez   |   April 30 2011 04:49:37 PM   |    Development  Dojo  XPages  Javascript    |  
  |   Next   |   Previous

Comments (7)

Gravatar Image
Okeowo Aderemi    http://forgetdbigwords.com    06/27/2011 9:05:14 AM

i have had the opportunity to actually use both frameworks,i started with jQuery,at first,it was nice,quick but at the end of the day it was Dojo i finally settled for,Dojo has a superb interface for creating Widget,Classes.The Modular structure of module is what really amazes me,you can have your builds,there only stripping out what you need.do i think jquery is good its absolutely awesome,but in terms of Larger applications i'd stick to Dojo.

Gravatar Image
Serdar Basegmez    http://www.developi.com    05/02/2011 9:21:38 AM

Henning, I used "apples and oranges" regarding the comparison in Wikipedia :)

{ Link }

There seems to be important differences in functionality. But I agree, XPages would support jQuery also if we want it to be used for simpler web applications in the future. I think extension api could be used to do this?

Maybe you're right about Microsoft (and Google) support may (un)impress me :)))

Eric, thanks for the detailed explanation. I roughly looked at the jQuery and I could not see extensibility but it really seems easier to use.

A final note, first time I saw these js frameworks, they all were costly for simple web apps. But compression and selective imports makes them very usable right now. Dojo takes about 60K for whole library I think. It's very OK for intranet apps.

Thanks to all for your comments.

Gravatar Image
Bob Balfe    http:/blog.balfes.net    05/01/2011 7:25:28 PM

I agree with Eric, for applications Dojo is the way to go and really, as Dojo has matured it is getting all of the fancy UI stuff over time - they seem to play catchup in this space. But for complex widgets, build, and speed, Dojo is in my opinion progressing faster.

Gravatar Image
Henning Heinz       05/01/2011 11:54:20 AM

You mean simple sites like Amazon, Twitter, Dell, Best Buy, NBC, EA, ESPN or CBS News?

AOL, who is mentioned as a sponsor for DoJo is using jQuery on their "simple" homepage (although who cares about AOL anymore).

And if you use jQuery UI (which you would need if you want a more broader scope like Dojo) there are custom builds available. I have heard that Dojo got much better recently but in the past you often only used Dojo when speed and bandwidth did not matter. Unoptimized Dojo code was one of the reason why early XPages loaded so slow. It got better over time.

Iit is a pity that IBM does not support jQuery for building "simple" sites with Domino. But in all fairness it seems you can tame Dojo to behave much better. I chose jQuery a few years ago because it was the lowest in file size and got stuck with it.

I would say Dojo has an advantage when building rich client applications for the browser. Still I consider it a disadvantage that XPages only support Dojo. jQuery is much too popular to be ignored.

Gravatar Image
Erik Brooks       05/01/2011 2:34:49 AM

As someone who has looked *extensively* at both toolkits there are pros and cons to both.

JQuery is far more popular. It had more "quick, get-it-done!" functionality than Dojo for a long time, and much better documentation until recently. Now Dojo's documentation is fairly decent, but it still lacks a bit compared with JQuery.

Generally for "simple" sites, JQuery is the way to go. It's easy to get going and has no custom builds required for decent performance. That's a big selling point vs. Dojo.

If, however, you're building complicated web *applications* with long expected lifecycles, Dojo is absolutely the way to go. Forward compatibility is completely spelled out and a formal design goal, as is i18n, localization, and accessibility. The general architecture is better thought-out, more easily extended, and is much more formal to real OOP paradigms.

There's actually a number of sites that run *both*. JQuery for simple static pages where some fancy effects are desired, and Dojo for complicated widgets that constantly get upgraded with new features.

Gravatar Image
Mike Miller       04/30/2011 5:50:56 PM

Domino and jQuery together is extremely powerful. Been using for a couple of years and it makes so many things easier!

Gravatar Image
Henning Heinz       04/30/2011 5:37:02 PM

Why do you think this is apples and oranges? Because Dojo is used by IBM and jQuery by the rest of the world (;-)