Context Edit

Web requests to load.php can specify values for these; ResourceLoader does so when it inserts load.php URLs in the HTML and JavaScript that it generates. PHP server code can retrieve their values through getDebug/Skin/Language() methods of ResourceLoaderContext. In the browser these usually map to debug, skin, and wgUserLanguage configuration values in mw.config.

Also known as Development mode. See Debug mode for more information.
The ID of the skin that the requesting page uses.
The language code of the interface that the requesting page is displayed in.

Module Edit

A bundle of one or more resources, identified by a module name.
Any part of a module's content (script file, stylesheet, interface message).
message blob
One or more interface messages in a given language, encoded using JSON.
One or more other modules that must load before the current module.
(Deprecated) A mechanism for instructing the server to omit some of the defined modules from the client-side registry. See also: Target system.
registry (server-side)
Modules defined by MediaWiki core and extensions, that can be queued via OutputPage.php. See also: RL/DEV#Loading modules.
registry (client-side)
Modules available to the current browser context. This is a subset of modules defined server-side. Several mechanisms and optimisations reduce which module's metadata end up transmitted to the client-side. This includes the Target system, skipFunction, requireES6 (ResourceLoader/ES6), and which skin is selected (T236603).
The authority that created the resources in a given module. This represents the module's trust level, and determins whether it may be loaded in contexts with heightened security requirements. For example, personal scripts and site scripts (user-generated JavaScript customizations edited through the wiki) are not allowed on Special:UserLogin and Special:Preferences. We recognize these four origin values:
  • Core-Sitewide: Source code developed as part of trusted software (MediaWiki core, skin or extension).
  • Core-Individual: Auto-generated by trusted software for an individual webrequest (e.g. key-value JSON holding account metadata or their notification count).
  • User-Sitewide: Raw source code provided by end-users of the wiki who have site-wide permissions (e.g. Common.js or a gadget, editable by elected interface admins).
  • User-Individual: Raw source code provided directly by any other individual user.