Add pure CSS modules via addModuleStyles() instead of addModules()
'ext.uls.pt' and 'ext.uls.interlanguage' are pure CSS modules. This change avoids a FOUC of the ULS icons. Change-Id: I912d0c98d1857461d21b4db0ef7376783cc871d2
This commit is contained in:
@@ -131,9 +131,9 @@ class UniversalLanguageSelectorHooks {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ( $wgULSPosition === 'personal' ) {
|
if ( $wgULSPosition === 'personal' ) {
|
||||||
$out->addModules( 'ext.uls.pt' );
|
$out->addModuleStyles( 'ext.uls.pt' );
|
||||||
} else {
|
} else {
|
||||||
$out->addModules( 'ext.uls.interlanguage' );
|
$out->addModuleStyles( 'ext.uls.interlanguage' );
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user