Explicitly define module position

Style modules currently added through addModuleStyles default
to being in the head ("top" position). This is an unhealthy default,
since only critical styles that are needed at pageload should be
in the head. In order to be able to switch the default to "bottom",
existing module positions have to be defined explicitly.

Bug: T97410
Change-Id: I209f93a49ddd0aa143348c0238849a121856dce1
This commit is contained in:
Gilles Dubuc
2015-05-05 17:34:44 +02:00
parent 7e167aa617
commit d04ade3574

View File

@@ -271,6 +271,7 @@ $wgResourceModules['jquery.uls.data'] = array(
) + $resourcePaths; ) + $resourcePaths;
$wgResourceModules['jquery.uls.grid'] = array( $wgResourceModules['jquery.uls.grid'] = array(
'position' => 'top',
'styles' => 'lib/jquery.uls/css/jquery.uls.grid.css', 'styles' => 'lib/jquery.uls/css/jquery.uls.grid.css',
) + $resourcePaths; ) + $resourcePaths;