Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Depends on your needs. If all you need is XHR and DOM manipulation, you can probably pick any well-known library out there. But if you're looking for stuff beyond that, Dojo gives it to you. jQuery...doesn't, really (at least not without looking around for plugins, and then you're getting into YMMV territory).</p> <p>Whenever anyone asks something like this I always point them to Rebecca Murphey's excellent blog post pointing out what kinds of things jQuery doesn't really consider:</p> <p><a href="http://rmurphey.com/blog/2010/08/09/on-jquery-large-applications/" rel="noreferrer">http://rmurphey.com/blog/2010/08/09/on-jquery-large-applications/</a></p> <p>Some examples of things Dojo gives you that jQuery doesn't OOTB:</p> <ul> <li>Modularization and dependency management system <ul> <li>RequireJS is popular for this among jQuery users; interestingly, it's now a Dojo Foundation project, and its module format will also be usable in Dojo 1.6.</li> </ul></li> <li>Inheritance framework (<code>dojo.declare</code>)</li> <li>Fully skinnable/extensible widgets with WAI-ARIA support (<code>dijit</code>, with more in <code>dojox</code>)</li> <li>Consistent data APIs (used by more data-intensive widgets such as Select, ComboBox, FilteringSelect, and <code>dojox.grid</code>)</li> <li>Pub/sub framework for communicating across an application without necessarily directly binding together unrelated components <ul> <li>Peter Higgins, the Dojo maintainer, actually wrote a plugin to bring this and some other Dojo niceties to jQuery; it's available here: <a href="https://github.com/phiggins42/bloody-jquery-plugins" rel="noreferrer">https://github.com/phiggins42/bloody-jquery-plugins</a></li> </ul></li> <li>Hash support (<code>dojo.hash</code> since 1.4) <ul> <li><a href="http://benalman.com/projects/jquery-bbq-plugin/" rel="noreferrer">http://benalman.com/projects/jquery-bbq-plugin/</a> is a rather nice jQuery plugin for this functionality.</li> </ul></li> <li>Build script for rolling your own custom build of Dojo with layers containing all your app's dependencies consolidated into one script.</li> </ul>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload