mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-09-24 02:38:44 +00:00
refactor: do not load ToC styles when not needed
This commit is contained in:
parent
ac06d312d3
commit
0fa725ad77
|
@ -278,7 +278,6 @@ class SkinCitizen extends SkinMustache {
|
|||
if ( $out->isTOCEnabled() ) {
|
||||
// Add class to body that notifies the page has TOC
|
||||
$out->addBodyClasses( 'skin-citizen-has-toc' );
|
||||
// Disabled style condition loading due to pop in
|
||||
$options['scripts'][] = 'skins.citizen.scripts.toc';
|
||||
$options['styles'][] = 'skins.citizen.styles.toc';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue