From d04ade35741aded3515bb2eb1057f3e6e3ef5499 Mon Sep 17 00:00:00 2001 From: Gilles Dubuc Date: Tue, 5 May 2015 17:34:44 +0200 Subject: [PATCH] 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 --- Resources.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Resources.php b/Resources.php index 4e0a8cf2..0d05f64e 100644 --- a/Resources.php +++ b/Resources.php @@ -271,6 +271,7 @@ $wgResourceModules['jquery.uls.data'] = array( ) + $resourcePaths; $wgResourceModules['jquery.uls.grid'] = array( + 'position' => 'top', 'styles' => 'lib/jquery.uls/css/jquery.uls.grid.css', ) + $resourcePaths;