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

fix: stop rendering inherited styles in css preview #4478

Merged
merged 1 commit into from
Nov 27, 2024
Merged

Conversation

TrySound
Copy link
Member

Huge amount of css variables adds something like 8k of dom elements to highlighted css preview.

Here as fast fix killed inherited styles so at least only root will lag and everything else will not get performance hit.

Huge amount of css variables adds something like 8k of dom elements
to highlighted css preview.

Here as fast fix killed inherited styles so at least only root will lag
and everything else will not get performance hit.
@TrySound TrySound requested a review from kof November 27, 2024 20:24
@TrySound TrySound merged commit 6ed4b92 into main Nov 27, 2024
15 checks passed
@TrySound TrySound deleted the kill-inherited branch November 27, 2024 20:46
TrySound added a commit that referenced this pull request Nov 27, 2024
Huge amount of css variables adds something like 8k of dom elements to
highlighted css preview.

Here as fast fix killed inherited styles so at least only root will lag
and everything else will not get performance hit.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants