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.
|
# 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
|
||||||
|
@@ -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,
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@@ -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.
|
||||||
|
@@ -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,
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user