ResourceLoader
| ResourceLoader |
|---|
| Reference |
| Tutorials |
Resource Loader é o sistema de entrega no MediaWiki para JavaScript, CSS, ícones da interface, e texto da tradução. Foi implementado pela primeira vez na Wikipédia em 2011 e lançado no final daquele ano como parte de MediaWiki 1.17.
It is responsible for MediaWiki's low-cost high-performant front end, built on three principles that enable quick deployment of new code seen by Web clients on all pages in less than 5 minutes.
Use the navigation box on the right to navigate the reference and tutorials on ResourceLoader.
Sobre ResourceLoader

ResourceLoader was created in 2010 by Roan Kattouw, Trevor Parscal, and Timo Tijhof.
ResourceLoader loads script and style resources on-demand and only for browsers that are capable of running them. Some highlighted features:
- Minifying and concatenating
- This reduces the size of the code, saving bandwidth cost and download time.
JavaScript files, CSS files, and interface messages are loaded in a single request.
- Batch loading and local cache defragmentation
- This reduces the number of requests made.
The server can provide multiple module bundles in response to a single request from the browser. These are unpacked in the browser and can be re-used from the cache on subsequent page views, even if they need a different set of modules.
- Bundle static files with generated data and virtual files
- This allows granular configuration without overhead of additional API requests.
A module can contain static files but also generated data from PHP, and virtual files that represent source code from an external source (e.g., a wiki page).
Administração do código
- Maintained by MediaWiki Platform Team.
- Live chat (IRC): #mediawiki-core connect
- Issue tracker: Phabricator MediaWiki-ResourceLoader (Report an issue)