JQuery

We have been shipping the jQuery JavaScript library with MediaWiki since the 1.16 release. MediaWiki 1.16 ships with jQuery version 1.3.2 with some patches by Trevor Parscal and Roan Kattouw to fix jQuery bug #5081 (see r60697 and r61700) and the development version, 1.17, ships with jQuery version 1.4.2 (since r65962).

In 1.16, the jQuery file is in skins/common/jquery.js and the minified version is jquery-min.js in the same directory. In 1.17, the uncompressed version of jQuery version 1.3.2 is in skins/common/jquery-1.3.2.js and the minified version is in the same directory, named skins/common/jquery-1.3.2.min.js. The 1.4.2 equivalents are in the same directory.

The minified jQuery file can be regenerated by running make in skins/common/.

Extensions can use OutputPage's includeJQuery method, which has existed since r61431, to avoid loading minified version of jQuery core multiple times. It should be noted that includeJQuery does not support jQuery plugins and such.