Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

Commit f417b1e

Browse files
committed
Revert "feat(@nguniversal/common): disable critical CSS inlining by default"
This reverts commit 357411d. (cherry picked from commit e663629)
1 parent 48377d0 commit f417b1e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

modules/common/clover/server/src/server-engine.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export class Engine {
4848
pathname,
4949
options.htmlFilename,
5050
);
51-
const inlineCriticalCss = options.inlineCriticalCss === true;
51+
const inlineCriticalCss = options.inlineCriticalCss !== false;
5252

5353
const customResourceLoader = new CustomResourceLoader(
5454
origin,

modules/common/engine/src/engine.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export interface RenderOptions {
2222
documentFilePath?: string;
2323
/**
2424
* Reduce render blocking requests by inlining critical CSS.
25-
* Defaults to false.
25+
* Defaults to true.
2626
*/
2727
inlineCriticalCss?: boolean;
2828
/**
@@ -53,7 +53,7 @@ export class CommonEngine {
5353
* render options
5454
*/
5555
async render(opts: RenderOptions): Promise<string> {
56-
const { inlineCriticalCss = false } = opts;
56+
const { inlineCriticalCss = true } = opts;
5757

5858
if (opts.publicPath && opts.documentFilePath && opts.url !== undefined) {
5959
const url = new URL(opts.url);

0 commit comments

Comments
 (0)