Skip to content

Conversation

@Juice10
Copy link
Member

@Juice10 Juice10 commented May 4, 2022

Some frameworks dynamically append styles to a stylesheet via styleEl.textContent = styleEl.textContent + newStyleRules
This can end up in a barrage of expanding text mutations on the same element.

This PR makes sure only the last textContent change gets applied, as any earlier textContent changes would be overwritten anyway.

Copy link
Contributor

@eoghanmurray eoghanmurray left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Yuyz0112
Copy link
Member

Yuyz0112 commented May 9, 2022

LGTM!

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.

5 participants