refactor: do not load ToC styles when not needed

This commit is contained in:
alistair3149 2021-06-09 13:56:32 -04:00
parent ac06d312d3
commit 0fa725ad77
No known key found for this signature in database
GPG key ID: 94D081060FD3DD9C

View file

@ -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';
}