jQuery is a JavaScript library designed to simplify cross-browser development. MediaWiki has included jQuery since version 1.16.

Version

MediaWiki versions with the jQuery version used
MediaWiki jQuery Notes
  • MediaWiki 1.37
  • MediaWiki 1.36
jQuery 3.6.0 Including jQuery Migrate v3.3.2
  • MediaWiki 1.35
  • MediaWiki 1.34
jQuery 3.4.1 Including jQuery Migrate v3.1.0
  • MediaWiki 1.33
  • MediaWiki 1.32
jQuery 3.3.1 Including jQuery Migrate v3.0.1
  • MediaWiki 1.31
  • MediaWiki 1.30
  • MediaWiki 1.29
jQuery 3.2.1 Including jQuery Migrate v3.0.0. See also $wgUsejQueryThree (removed in MW 1.31) and task T124742.
  • MediaWiki 1.28
  • MediaWiki 1.27
  • MediaWiki 1.26
  • MediaWiki 1.25
  • MediaWiki 1.24.3
jQuery 1.11.3 git #d898e80f, git #acfa9695
MediaWiki 1.24.2 jQuery 1.11.2
MediaWiki 1.24 jQuery 1.11.1 with jQuery Migrate git #e5502d1f, git #63c36506, git #8e41082a
  • MediaWiki 1.23
  • MediaWiki 1.22
  • MediaWiki 1.21
jQuery 1.8.3
MediaWiki 1.20 jQuery 1.8.2 task T31100, git #3b85ab06,

git #974fa832, git #d6bb1851

MediaWiki 1.19 jQuery 1.7.1 r105612
MediaWiki 1.18 jQuery 1.6.4 task T30904, task T31773

r91845, r92349, r99231, r99262

MediaWiki 1.17 jQuery 1.4.2 r65962
MediaWiki 1.16 jQuery 1.3.2

jQuery Migrate

The plugin jQuery Migrate helps developers to migrate from jQuery 1 to jQuery 3. The tracking task to remove these warnings and improve the underlying code is task T169385.

Note that the stack traces are available together with the console log in modern browsers, to help to locate the origin of the deprecated function.

ResourceLoader

MediaWiki version:
1.17

As of MediaWiki 1.17 all resources are (or should be) loaded through ResourceLoader. The core modules are stored in /resources. There are no static minified versions anymore as ResourceLoader takes care of this when combining and optimizing all queued files. All code can assume that jQuery has already been loaded.

However, if your site skin was created prior to 1.17, ResourceLoader will not be loaded and jQuery will not be available.

See also

  • Upstream projects
  • Learning JavaScript
  • jQuery snippets
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.