diff --git a/modules/common/clover/server/src/server-engine.ts b/modules/common/clover/server/src/server-engine.ts index dbb0977cf..e3540b5e2 100644 --- a/modules/common/clover/server/src/server-engine.ts +++ b/modules/common/clover/server/src/server-engine.ts @@ -48,7 +48,7 @@ export class Engine { pathname, options.htmlFilename, ); - const inlineCriticalCss = options.inlineCriticalCss !== false; + const inlineCriticalCss = options.inlineCriticalCss === true; const customResourceLoader = new CustomResourceLoader( origin, diff --git a/modules/common/engine/src/engine.ts b/modules/common/engine/src/engine.ts index 805840711..530eaf7b4 100644 --- a/modules/common/engine/src/engine.ts +++ b/modules/common/engine/src/engine.ts @@ -29,7 +29,7 @@ export interface RenderOptions { documentFilePath?: string; /** * Reduce render blocking requests by inlining critical CSS. - * Defaults to true. + * Defaults to false. */ inlineCriticalCss?: boolean; /** @@ -64,7 +64,7 @@ export class CommonEngine { * render options */ async render(opts: RenderOptions): Promise { - const { inlineCriticalCss = true } = opts; + const { inlineCriticalCss = false } = opts; if (opts.publicPath && opts.documentFilePath && opts.url !== undefined) { const url = new URL(opts.url);