Load ULS language list from a resource loader module
Having them in the page source of every page view is wasteful. Bug: 41210 Change-Id: If15e297a4781cc49ded06fbc906529f57a22aafe
This commit is contained in:
committed by
Gerrit Code Review
parent
60242e2c53
commit
4554c79d51
@@ -11,6 +11,10 @@ $resourcePaths = array(
|
||||
'remoteExtPath' => 'UniversalLanguageSelector'
|
||||
);
|
||||
|
||||
$wgResourceModules['ext.uls.languagenames'] = array(
|
||||
'class' => 'ResourceLoaderULSModule'
|
||||
);
|
||||
|
||||
$wgResourceModules['ext.uls.displaysettings'] = array(
|
||||
'scripts' => 'resources/js/ext.uls.displaysettings.js',
|
||||
'styles' => 'resources/css/ext.uls.displaysettings.css',
|
||||
@@ -41,6 +45,7 @@ $wgResourceModules['ext.uls.init'] = array(
|
||||
'monobook' => 'resources/css/ext.uls-monobook.css',
|
||||
),
|
||||
'dependencies' => array(
|
||||
'ext.uls.languagenames',
|
||||
'mediawiki.Uri',
|
||||
'mediawiki.util',
|
||||
'jquery.json',
|
||||
|
||||
Reference in New Issue
Block a user