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

perf: improve attribute selectors by adding single listeners #10384

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

edusperoni
Copy link
Contributor

This is a draft for a possible performance optimization on CSS. Currently if we have multiple attributes tracked, we add 1 listener for each property. With this PR we add 1 listener and on property change we check if that property triggers a CSS change or not.

Additionally, we add a way (via CSSUtils.IgnoredCssDynamicAttributeTracking) to ignore attributes globally. This is useful for Angular where we can ignore attributes like _ngHost and _ngCmp which only match and never change.

Marking as a draft as this might create regressions and needs more testing.

@cla-bot cla-bot bot added the cla: yes label Sep 21, 2023
@NathanWalker NathanWalker added this to the 9.0 milestone Sep 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants