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: If3348022bca5eed73dee956d676ace26c4bacafb
This commit is contained in:
Gilles Dubuc 2015-04-28 15:28:28 +02:00
parent b46afcc424
commit 2dfa95be83

View file

@ -133,6 +133,7 @@ $commonModuleInfo = array(
);
$wgResourceModules['ext.abuseFilter'] = array(
'position' => 'top',
'styles' => 'ext.abuseFilter.css',
) + $commonModuleInfo;