Grouped diff and history modules together to help reduce cache invalidation. Loaded diff styles statically. This should help with bug #27418, but I suspect there are more cases where we need to do this sort of thing before the bug is truly resolved.

This commit is contained in:
Trevor Parscal 2011-02-15 22:14:03 +00:00
parent 7fd2e9bd51
commit a8b81f9a8d
2 changed files with 5 additions and 1 deletions

View file

@ -584,7 +584,8 @@ CONTROL;
*/
function showDiffStyle() {
global $wgOut;
$wgOut->addModules( 'mediawiki.legacy.diff' );
$wgOut->addModuleStyles( 'mediawiki.legacy.diff' );
$wgOut->addModuleScripts( 'mediawiki.legacy.diff' );
}
/**

View file

@ -399,6 +399,7 @@ return array(
'mediawiki.action.history' => array(
'scripts' => 'resources/mediawiki.action/mediawiki.action.history.js',
'dependencies' => 'mediawiki.legacy.history',
'group' => 'mediawiki.action.history',
),
'mediawiki.action.edit' => array(
'scripts' => 'resources/mediawiki.action/mediawiki.action.edit.js',
@ -522,6 +523,7 @@ return array(
'mediawiki.legacy.diff' => array(
'scripts' => 'common/diff.js',
'styles' => 'common/diff.css',
'group' => 'mediawiki.action.history',
'remoteBasePath' => $GLOBALS['wgStylePath'],
'localBasePath' => "{$GLOBALS['IP']}/skins",
'dependencies' => 'mediawiki.legacy.wikibits',
@ -534,6 +536,7 @@ return array(
),
'mediawiki.legacy.history' => array(
'scripts' => 'common/history.js',
'group' => 'mediawiki.action.history',
'remoteBasePath' => $GLOBALS['wgStylePath'],
'localBasePath' => "{$GLOBALS['IP']}/skins",
'dependencies' => 'mediawiki.legacy.wikibits',