ResourceLoader/Developing with ResourceLoader

When developing on your own server

 * Develop in "debug mode"
 * Test in "production mode"

When you load modules via ResourceLoader, by default all scripts in the module will be loaded in batch, and minified. The results of minifications will be cached

Startup script
- startup script is the graph of all modules and dependencies that the server knows about - cached for 5 min by default ($wgResourceLoaderMaxage) - versioned & unversioned - if URL has a version number, then long expiry time - version number is a timestamp of the most-recently-modified-time of all modules in request (max(recently-modified(modules in request))

-

Debug mode
Debug mode turns off batch loading and script minification.

You can turn debug mode on for all requests by setting $wgResourceLoaderDebug to true in your LocalSettings.

You can turn debug mode on for an individual request with debug=true

Production mode
Set $wgResourceLoaderDebug = false in your LocalSettings

Set debug=false in the URL