From: Gilles Dubuc Date: Tue, 26 May 2015 10:11:35 +0000 (+0200) Subject: Explicitly define filepage module position X-Git-Tag: 1.31.0-rc.0~11282 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22auteur_infos%22%2C%20%22id_auteur=%24id%22%29%20.%20%22?a=commitdiff_plain;h=e88ae33388ea835d85dfbca87a525aeedc30e248;p=lhc%2Fweb%2Fwiklou.git 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 --- 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' ), ),