mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-16 06:23:03 +00:00
Add configuration option to disable inlined CSS in SSR HTML
When inlining CSS, Angular Universal needs to extract critical styles. This seems to take up a significant chunk of processing time. However, loading may appear less smooth when this feature is disabled. Added to the configuration to make it easier to A/B test this without a full re-build.
This commit is contained in:
@@ -7,6 +7,7 @@ export const environment: Partial<BuildConfig> = {
|
||||
universal: {
|
||||
preboot: true,
|
||||
async: true,
|
||||
time: false
|
||||
time: false,
|
||||
inlineCriticalCss: true,
|
||||
}
|
||||
};
|
||||
|
@@ -12,7 +12,8 @@ export const environment: Partial<BuildConfig> = {
|
||||
universal: {
|
||||
preboot: false,
|
||||
async: true,
|
||||
time: false
|
||||
time: false,
|
||||
inlineCriticalCss: true,
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user