Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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.

None yet

3 participants