Skip to content

Re-land disabling component styles instead of removing them #59651

@mattlewis92

Description

@mattlewis92

Which @angular/* package(s) are relevant/related to the feature request?

platform-browser

Description

We were wondering if it was possible to re-land this styles performance patch in Angular to disable component styles, instead of removing them from the DOM when all component instances are destroyed

From what we can tell, the referenced performance regression was due to an issue with Chrome that has since been fixed (https://issues.chromium.org/issues/40911913)

If that isn't the case and some context can be provided as to why that perf fix was reverted, we would love to help to re-land it

Proposed solution

Get 1640743 up to date and re-land it into Angular

Alternatives considered

We have currently been patching that fix into our own version of Angular as it made a significant impact on our performance metrics, but it's becoming a maintenance burden to keep it up to date when we upgrade between Angular versions

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions