mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-12 20:43:08 +00:00

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.
17 lines
454 B
TypeScript
17 lines
454 B
TypeScript
import { Config } from './config.interface';
|
|
|
|
export interface UniversalConfig extends Config {
|
|
preboot: boolean;
|
|
async: boolean;
|
|
time: boolean;
|
|
|
|
/**
|
|
* 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?;
|
|
}
|