ResourceLoader/Vocabulary
From MediaWiki.org
[edit] Programming Interfaces
- ResourceLoader
- A PHP class that handles generating request strings and serving modules.
- ResourceLoaderModule
[edit] Resources
- Loader
- A JavaScript object (
mw.loader) that handles dependencies and loading procedures for modules. - Localization
- A PHP file that provides localized messages in multiple languages for a module.
- Message blob
- A JSON string containing messages used in a module in a specific language.
- Module
- A combination of one or more scripts and/or styles identified by a unique name.
- Dependencies
- One or more modules which must be loaded for the module to function.
- Script
- A JavaScript file that provides the body of the module’s code.
- Style
- A CSS file that provides style rules for a module.
- Origin
- The type of place a module originates from. Used to determine wether a module is safe for certain uses. Eg. a user- or site-generated module is never ran on Special:UserLogin or Special:Preferences. See also ResourceLoader/Origins.
[edit] Module loader states
- » See also mediaWiki.loader
- loaded
- A module has been received by the client.
- loading
- A module is being received by the client.
- ready
- A module has been received by the client, and executed.
- registered
- A module has been identified to exist by a call to
mw.loader.register.
| ResourceLoader | |
|---|---|
| Documentation | Migration guide (users) · Migration guide (developers) · Developing with ResourceLoader · Default modules · Vocabulary |
| Project information | Status updates · Version 1 Design Specification (tasks) · Version 2 Design Specification (tasks) · Requirements |
| Other | JavaScript Deprecations |