Last updated 27 January 2014. Created on 13 October 2006.
Edited by Pere Orga, figaro, aj045, ax. Log in to edit this page.

In versions prior to Drupal 5.0, JavaScript effects are made possible through a decent library of functions in /misc/drupal.js. Effects were achieved with additional aptly named files like collapse.js and autocomplete.js.

One limitation of drupal.js was the fact that its development would never match the pace of dedicated JavaScript libraries.

At the same time, module developers were starting to incorporate advanced effects libraries like Dojo, moo.fx, and prototype to achieve nice effects in their own modules. Aside from the lack of consistency, there were technical issues whereby implementing a couple of cool modules would cause name-space conflicts between the JavaScript libraries that they implemented.

Shortly after the birth of Drupal Groups, the AJAX developers group began looking for agreement about which library should be used. After a few threads like this one, jQuery was identified as the best candidate, especially after active support by John Resig, the jQuery project lead, who agreed to dual-licence jQuery as GPL so it could be distributed with Drupal.

Other important benefits of jQuery:

  • The core jQuery library is very small (about 15kb).
  • jQuery has a clean, modular approach to plugins.
  • The core library is stable, being in perpetual feature freeze from version 1.0.

jQuery is incorporated in Drupal since version 5.0 and work continues to remove dependencies on drupal.js and associated libraries.

Looking for support? Visit the forums, or join #drupal-support in IRC.