Page MenuHomePhabricator

Set $wgPreloadJavaScriptMwUtil back to false on WMF wikis
Closed, InvalidPublic

Description

When Resource Loader was introduced, it was necessary to create $wgPreloadJavaScriptMwUtil and set it to true on WMF wikis to reduce the breakage of scripts until they are fixed by their authors. This was back in 2012. Quoting the description of the flag:

Set to true if your wiki has a large amount of user/site scripts that are lacking dependency information. In the short to medium term these user/site scripts should be fixed by adding the used modules to the dependencies in the module registry and/or wrapping them in a callback to mw.loader.using.

It is 2015 already, so it is probably time to reconsider the value for this variable (the "short term" is long gone).

Event Timeline

He7d3r raised the priority of this task from to Needs Triage.
He7d3r updated the task description. (Show Details)
He7d3r subscribed.

We recently disabled jQuery.mwExtension, and that hasn't really given me much confidence that said scripts have been fixed... Anyone got ideas on if we can do some measuring and encouragement in any way ?

Default value of $wgPreloadJavaScriptMwUtil is false, I find only a $wgPreloadJavaScriptMwUtil = true in the labs variante of CommonSettings-labs.php. Maybe this is already set to false in production? It seems like that for me.

Krenair claimed this task.
krenair@tin:~$ mwscript eval.php testwiki
> var_dump( $wgPreloadJavaScriptMwUtil );
bool(false)