Skip to content

Conversation

@vursen
Copy link
Contributor

@vursen vursen commented Dec 12, 2025

Description

The will-change: transform on every frozen grid cell does not appear to have any performance benefit (tested internally with grid benchmark). At the same time, it forces the browser to create many unjustified composition layers.

As a general rule, MDN recommends using will-change only to deal with existing performance problems:

Warning: will-change is intended to be used as a last resort, in order to try to deal with existing performance problems. It should not be used to anticipate performance problems.

Before After
Screenshot 2025-12-12 at 16 51 35 Screenshot 2025-12-12 at 16 51 19

Type of change

  • Refactor

@vursen vursen requested a review from tomivirkki December 12, 2025 12:59
Copy link
Member

@tomivirkki tomivirkki left a comment

Choose a reason for hiding this comment

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

In general, MDN recommends using will-change only to deal with some existing performance problems but not to anticipate them.

I assume these styles were added years ago to tackle some performance bottlenecks, but they no longer seem to serve that purpose.

@sonarqubecloud
Copy link

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.

3 participants