mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
Disable inlineCriticalCss by default for better SSR performance
This commit is contained in:
@@ -21,8 +21,8 @@ universal:
|
||||
# Whether to inline "critical" styles into the server-side rendered HTML.
|
||||
# Determining which styles are critical is a relatively expensive operation;
|
||||
# this option can be disabled to boost server performance at the expense of
|
||||
# loading smoothness.
|
||||
inlineCriticalCss: true
|
||||
# loading smoothness. For improved SSR performance, DSpace defaults this to false (disabled).
|
||||
inlineCriticalCss: false
|
||||
|
||||
# The REST API server settings
|
||||
# NOTE: these settings define which (publicly available) REST API to use. They are usually
|
||||
|
@@ -8,6 +8,6 @@ export const environment: Partial<BuildConfig> = {
|
||||
preboot: true,
|
||||
async: true,
|
||||
time: false,
|
||||
inlineCriticalCss: true,
|
||||
inlineCriticalCss: false,
|
||||
}
|
||||
};
|
||||
|
@@ -10,7 +10,8 @@ export const environment: BuildConfig = {
|
||||
universal: {
|
||||
preboot: true,
|
||||
async: true,
|
||||
time: false
|
||||
time: false,
|
||||
inlineCriticalCss: false,
|
||||
},
|
||||
|
||||
// Angular Universal server settings.
|
||||
|
@@ -13,7 +13,7 @@ export const environment: Partial<BuildConfig> = {
|
||||
preboot: false,
|
||||
async: true,
|
||||
time: false,
|
||||
inlineCriticalCss: true,
|
||||
inlineCriticalCss: false,
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user