MediaWiki:Common.js/documentation
Appearance
This script executes for every user, anonymous or logged-in, using any skin. Additions to this script should be kept to a minimum, as it is a major single point of failure, and for the sake of allowing per-user customisations. Preferably write a gadget instead.
To make sure your script executes after this one, make it depend on the ResourceLoader module site
. See mw:ResourceLoader/Developing with ResourceLoader for details.
Note that this code does not run on the mobile website: see MediaWiki:Mobile.js.
See also: Special:Gadgets.