From e88ae33388ea835d85dfbca87a525aeedc30e248 Mon Sep 17 00:00:00 2001 From: Gilles Dubuc Date: Tue, 26 May 2015 12:11:35 +0200 Subject: [PATCH] Explicitly define filepage 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: Id98b9eb46ef56a43bae99830f7db554c90073407 --- resources/Resources.php | 1 + 1 file changed, 1 insertion(+) diff --git a/resources/Resources.php b/resources/Resources.php index b0cd932929..355502a0c6 100644 --- a/resources/Resources.php +++ b/resources/Resources.php @@ -39,6 +39,7 @@ return array( 'group' => 'noscript', ), 'filepage' => array( + 'position' => 'top', 'class' => 'ResourceLoaderWikiModule', 'styles' => array( 'MediaWiki:Filepage.css' ), ), -- 2.20.1