mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-11-11 16:48:54 +00:00
feat(core): ✨ enable caching for inline JS
This commit is contained in:
parent
58bab74eab
commit
5d59a6d3c0
|
@ -68,8 +68,7 @@ class SkinHooks implements
|
|||
if ( $this->getConfigValue( 'CitizenEnablePreferences', $out ) === true ) {
|
||||
$script = file_get_contents( MW_INSTALL_PATH . '/skins/Citizen/resources/skins.citizen.scripts/inline.js' );
|
||||
$script = Html::inlineScript( $script );
|
||||
// TODO: Consider turning on cache after this is more stable
|
||||
$script = RL\ResourceLoader::filter( 'minify-js', $script, [ 'cache' => false ] );
|
||||
$script = RL\ResourceLoader::filter( 'minify-js', $script );
|
||||
$out->addHeadItem( 'skin.citizen.inline', $script );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue