Disable inlineCriticalCss by default for better SSR performance

This commit is contained in:
Tim Donohue
2024-05-15 12:12:55 -05:00
parent 84e4cc01cc
commit eeb562dd14
4 changed files with 6 additions and 5 deletions

View File

@@ -21,8 +21,8 @@ universal:
# Whether to inline "critical" styles into the server-side rendered HTML. # Whether to inline "critical" styles into the server-side rendered HTML.
# Determining which styles are critical is a relatively expensive operation; # Determining which styles are critical is a relatively expensive operation;
# this option can be disabled to boost server performance at the expense of # this option can be disabled to boost server performance at the expense of
# loading smoothness. # loading smoothness. For improved SSR performance, DSpace defaults this to false (disabled).
inlineCriticalCss: true inlineCriticalCss: false
# The REST API server settings # The REST API server settings
# NOTE: these settings define which (publicly available) REST API to use. They are usually # NOTE: these settings define which (publicly available) REST API to use. They are usually

View File

@@ -8,6 +8,6 @@ export const environment: Partial<BuildConfig> = {
preboot: true, preboot: true,
async: true, async: true,
time: false, time: false,
inlineCriticalCss: true, inlineCriticalCss: false,
} }
}; };

View File

@@ -10,7 +10,8 @@ export const environment: BuildConfig = {
universal: { universal: {
preboot: true, preboot: true,
async: true, async: true,
time: false time: false,
inlineCriticalCss: false,
}, },
// Angular Universal server settings. // Angular Universal server settings.

View File

@@ -13,7 +13,7 @@ export const environment: Partial<BuildConfig> = {
preboot: false, preboot: false,
async: true, async: true,
time: false, time: false,
inlineCriticalCss: true, inlineCriticalCss: false,
} }
}; };