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

feat(@nguniversal/common): disable critical CSS inlining by default #2349

Merged
merged 1 commit into from
Oct 6, 2021
Merged

feat(@nguniversal/common): disable critical CSS inlining by default #2349

merged 1 commit into from
Oct 6, 2021

Conversation

alan-agius4
Copy link
Collaborator

With this change we disable critical css inline by default. The main motivations are the following issues angular/angular-cli#20760 and angular/angular-cli#20864.

BREAKING CHANGE:

Inlining of critical CSS is no longer enable by default. Users already on Angular version 12 and have not opted-out from using this feature are encouraged to opt-in using the inlineCriticalCss option.

The motivation behind this change is that the package used to parse the CSS has a number of defects which can lead to unactionable error messages when updating to Angular 13 from versions priors to 12. Such errors can be seen in the following issue angular/angular-cli#20760.

@google-cla google-cla bot added the cla: yes label Oct 6, 2021
@alan-agius4 alan-agius4 added target: major This PR is targeted for the next major release and removed cla: yes labels Oct 6, 2021
@alan-agius4 alan-agius4 changed the title feat(@nguniveral/common): disable critical CSS inlining by default feat(@nguniversal/common): disable critical CSS inlining by default Oct 6, 2021
@angular angular deleted a comment from google-cla bot Oct 6, 2021
@angular angular deleted a comment from googlebot Oct 6, 2021
@angular angular deleted a comment from google-cla bot Oct 6, 2021
@angular angular deleted a comment from googlebot Oct 6, 2021
@alan-agius4 alan-agius4 closed this Oct 6, 2021
@alan-agius4 alan-agius4 reopened this Oct 6, 2021
With this change we disable critical css inline by default. The main motivations are the following issues angular/angular-cli#20760 and angular/angular-cli#20864.

BREAKING CHANGE:

Inlining of critical CSS is no longer enable by default. Users already on Angular version 12 and have not opted-out from using this feature are encouraged to opt-in using the `inlineCriticalCss` option.

The motivation behind this change is that the package used to parse the CSS has a number of defects which can lead to unactionable error messages when updating to Angular 13 from versions priors to 12. Such errors can be seen in the following issue angular/angular-cli#20760.
@alan-agius4 alan-agius4 closed this Oct 6, 2021
@alan-agius4 alan-agius4 reopened this Oct 6, 2021
@alan-agius4 alan-agius4 added the action: merge PR author is ready for this to merge label Oct 6, 2021
@alan-agius4 alan-agius4 merged commit 357411d into angular:master Oct 6, 2021
@alan-agius4 alan-agius4 deleted the critical branch October 6, 2021 16:37
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Nov 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge PR author is ready for this to merge flag: breaking change target: major This PR is targeted for the next major release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants