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:
@@ -14,8 +14,10 @@ export interface SSRConfig extends Config {
|
|||||||
enablePerformanceProfiler: boolean;
|
enablePerformanceProfiler: boolean;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Reduce render blocking requests by inlining critical CSS.
|
* When set to true, reduce render blocking requests by inlining critical CSS.
|
||||||
* Defaults to true.
|
* Determining which styles are critical can be an expensive operation;
|
||||||
|
* this option can be disabled to boost server performance at the expense of loading smoothness.
|
||||||
|
* For improved SSR performance, DSpace defaults this to false (disabled).
|
||||||
*/
|
*/
|
||||||
inlineCriticalCss: boolean;
|
inlineCriticalCss: boolean;
|
||||||
}
|
}
|
||||||
|
@@ -3,10 +3,10 @@ import { BuildConfig } from '../config/build-config.interface';
|
|||||||
export const environment: Partial<BuildConfig> = {
|
export const environment: Partial<BuildConfig> = {
|
||||||
production: true,
|
production: true,
|
||||||
|
|
||||||
// Angular SSR settings
|
// Angular SSR (Server Side Rendering) settings
|
||||||
ssr: {
|
ssr: {
|
||||||
enabled: true,
|
enabled: true,
|
||||||
enablePerformanceProfiler: false,
|
enablePerformanceProfiler: false,
|
||||||
inlineCriticalCss: true,
|
inlineCriticalCss: false,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
@@ -7,11 +7,11 @@ import { NotificationAnimationsType } from '../app/shared/notifications/models/n
|
|||||||
export const environment: BuildConfig = {
|
export const environment: BuildConfig = {
|
||||||
production: false,
|
production: false,
|
||||||
|
|
||||||
// Angular SSR settings
|
// Angular SSR (Server Side Rendering) settings
|
||||||
ssr: {
|
ssr: {
|
||||||
enabled: true,
|
enabled: true,
|
||||||
enablePerformanceProfiler: false,
|
enablePerformanceProfiler: false,
|
||||||
inlineCriticalCss: true,
|
inlineCriticalCss: false,
|
||||||
},
|
},
|
||||||
|
|
||||||
// Angular express server settings.
|
// Angular express server settings.
|
||||||
|
@@ -8,11 +8,11 @@ import { BuildConfig } from '../config/build-config.interface';
|
|||||||
export const environment: Partial<BuildConfig> = {
|
export const environment: Partial<BuildConfig> = {
|
||||||
production: false,
|
production: false,
|
||||||
|
|
||||||
// Angular SSR settings
|
// Angular SSR (Server Side Rendering) settings
|
||||||
ssr: {
|
ssr: {
|
||||||
enabled: false,
|
enabled: false,
|
||||||
enablePerformanceProfiler: false,
|
enablePerformanceProfiler: false,
|
||||||
inlineCriticalCss: true,
|
inlineCriticalCss: false,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user