On 13 Jul 2014, at 19:40, Max Semenik maxsem.wiki@gmail.com wrote:
You can bypass minification with &raw=true, but it would kill most of RL niceties too.
This is incorrect. ResourceLoader "raw" does not, nor ever has, bypassed minification.
"raw" is what bypasses the client loader framework. So instead of returning a combined script/styles/messages response to the mw.loader.implement callback, it returns a raw response for only scripts, styles or messages – whichever is specified in the "&only=" parameter – without a mw.loader.implement or mw.loader.state call.
This is mostly undocumented and discouraged hack that can be used to fetch ResourceLoader modules into a non-ResourceLoader context (e.g. Toolserver, old versions of MobileFrontend).
It does not bypass minification. That's what debug=true is for.
To fetch the scripts with only concatenation and not minification, you can use &modules=my.module.name&only=scripts&debug=true. Like all unversioned requests, this is only cached for 5 to 30 minutes (depending on mediawiki configuration).
-- Krinkle