diff --git a/apps/theming/lib/Service/ThemesService.php b/apps/theming/lib/Service/ThemesService.php index d7b94beffdd39..35f08f11d5761 100644 --- a/apps/theming/lib/Service/ThemesService.php +++ b/apps/theming/lib/Service/ThemesService.php @@ -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, + ]; } /**