From 0fa725ad77fa666a1261173e77b97120b1e77128 Mon Sep 17 00:00:00 2001 From: alistair3149 Date: Wed, 9 Jun 2021 13:56:32 -0400 Subject: [PATCH] refactor: do not load ToC styles when not needed --- includes/SkinCitizen.php | 1 - 1 file changed, 1 deletion(-) diff --git a/includes/SkinCitizen.php b/includes/SkinCitizen.php index d531f663..fd61e9b9 100644 --- a/includes/SkinCitizen.php +++ b/includes/SkinCitizen.php @@ -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'; }