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

Commit

Permalink
Revert "feat(@nguniversal/common): disable critical CSS inlining by d…
Browse files Browse the repository at this point in the history
…efault"

This reverts commit 357411d.
  • Loading branch information
alan-agius4 committed Oct 20, 2021
1 parent c2af77c commit e663629
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion modules/common/clover/server/src/server-engine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export class Engine {
pathname,
options.htmlFilename,
);
const inlineCriticalCss = options.inlineCriticalCss === true;
const inlineCriticalCss = options.inlineCriticalCss !== false;

const customResourceLoader = new CustomResourceLoader(
origin,
Expand Down
4 changes: 2 additions & 2 deletions modules/common/engine/src/engine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export interface RenderOptions {
documentFilePath?: string;
/**
* Reduce render blocking requests by inlining critical CSS.
* Defaults to false.
* Defaults to true.
*/
inlineCriticalCss?: boolean;
/**
Expand Down Expand Up @@ -53,7 +53,7 @@ export class CommonEngine {
* render options
*/
async render(opts: RenderOptions): Promise<string> {
const { inlineCriticalCss = false } = opts;
const { inlineCriticalCss = true } = opts;

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

0 comments on commit e663629

Please sign in to comment.