Jump to content

JQuery/en: Difference between revisions

From mediawiki.org
Content deleted Content added
FuzzyBot (talk | contribs)
Updating to match new version of source page
FuzzyBot (talk | contribs)
Updating to match new version of source page
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
<languages />
<languages />
{{DISPLAYTITLE:jQuery}}
{{DISPLAYTITLE:jQuery{{#translation:}}}}
__NOTOC__
__NOTOC__


Line 13: Line 13:
! scope="col" | jQuery
! scope="col" | jQuery
! scope="col" | Notes
! scope="col" | Notes
|-
| {{Plainlist|
* {{ll|MediaWiki 1.45}}
* {{ll|MediaWiki 1.44}}
* {{ll|MediaWiki 1.43}}
* {{ll|MediaWiki 1.42}}
* {{ll|MediaWiki 1.41}}
* {{ll|MediaWiki 1.40}}}}
|jQuery 3.7.1
|{{git|I144069ce80127692b5c0ff91c4e55383f4013e2f}}
|-
| {{ll|MediaWiki 1.39}}
|jQuery 3.6.1
|{{git|Ic67517cc8abe683697a0e631d0ff449eaa6e24ea}}
|- style="vertical-align: top"
|- style="vertical-align: top"
| {{plainlist|
| {{plainlist|
* {{ll|MediaWiki 1.38}}
* {{ll|MediaWiki 1.37}}
* {{ll|MediaWiki 1.37}}
* {{ll|MediaWiki 1.36}}
* {{ll|MediaWiki 1.36}}}}
}}
| jQuery 3.6.0
| jQuery 3.6.0
| Including jQuery Migrate v3.3.2
| Including jQuery Migrate v3.3.2
Line 33: Line 47:
}}
}}
|jQuery 3.3.1
|jQuery 3.3.1
|Including jQuery Migrate v3.0.1
| Including jQuery Migrate v3.0.1
|- style="vertical-align: top"
|- style="vertical-align: top"
| {{plainlist|
| {{plainlist|
Line 41: Line 55:
}}
}}
|jQuery 3.2.1
|jQuery 3.2.1
|Including jQuery Migrate v3.0.0. See also {{ll|Manual:$wgUsejQueryThree|$wgUsejQueryThree}} (removed in MW 1.31) and {{task|T124742}}.
| Including jQuery Migrate v3.0.0. See also {{ll|Manual:$wgUsejQueryThree|$wgUsejQueryThree}} (removed in MW 1.31) and {{task|T124742}}.
|- style="vertical-align: top"
|- style="vertical-align: top"
| {{plainlist|
| {{plainlist|
Line 100: Line 114:
==ResourceLoader==
==ResourceLoader==
{{MW 1.17|and later}}
{{MW 1.17|and later}}
As of MediaWiki 1.17 all resources are (or should be) loaded through {{ll|ResourceLoader}}. The [[Special:MyLanguage/ResourceLoader/Core modules|core modules]] are stored in <code>/resources</code>. There are no static minified versions anymore as ResourceLoader takes care of this when combining and optimizing all queued files.
As of MediaWiki 1.17 all resources are (or should be) loaded through {{ll|ResourceLoader}}.
The [[Special:MyLanguage/ResourceLoader/Core modules|core modules]] are stored in <code>/resources</code>.
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.
All code can assume that jQuery has already been loaded.


Line 108: Line 124:
* {{ll|Upstream projects|2=Upstream projects}}
* {{ll|Upstream projects|2=Upstream projects}}
* {{ll|Learning JavaScript|2=Learning JavaScript}}
* {{ll|Learning JavaScript|2=Learning JavaScript}}
*[[Special:MyLanguage/:Category:Snippets with JavaScript|jQuery snippets]]
*[[Special:MyLanguage/Category:Snippets with JavaScript|jQuery snippets]]


==External links==
==External links==

Latest revision as of 00:52, 7 March 2026

Warning: Display title "jQuery/en" overrides earlier display title "JQuery".


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

Version

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 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