Skip to content

Commit

Permalink
IONOS(theming): reduce available themes providers
Browse files Browse the repository at this point in the history
in order not to load not required css

Signed-off-by: Misha M.-Kupriyanov <[email protected]>
  • Loading branch information
printminion-co committed Sep 11, 2024
1 parent 8378abe commit ec20c15
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions apps/theming/lib/Service/ThemesService.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,13 @@ public function __construct(
$darkHighContrastTheme->getId() => $darkHighContrastTheme,
$dyslexiaFont->getId() => $dyslexiaFont,
];

// reduce CSS and JS files delivered to the client. Default theme is always loaded
$this->themesProviders = [
$defaultTheme->getId() => $defaultTheme,
$lightTheme->getId() => $lightTheme,
$darkTheme->getId() => $darkTheme,
];
}

/**
Expand Down

0 comments on commit ec20c15

Please sign in to comment.