-
Notifications
You must be signed in to change notification settings - Fork 129
Open
Labels
performanceImprove performanceImprove performance
Description
A performance issue I spotted while researching performance impact of will-change. This happens in Chrome too, but it's easier to see in Safari.
Steps to Reproduce
- Open em on an iPhone or a simulator.
- Attach Safari DevTools, and enable compositing borders to show repaint counters for each element.
- Scroll up and down slowly.
Current Behavior
Static elements like the scroll zone and the toolbar excessively while the viewport scrolls. See the number on the scroll zone, for example, which rapidly rises – showing 274+ repaints even though its content hasn't changed at all.
Screen.Recording.2025-11-28.at.02.31.36.mov
This measurably thrashes the main thread, taking up more than 50% of the CPU cycles during a profile of the screen recording above:
Expected Behavior
Elements shouldn't repaint as the user scrolls.
Metadata
Metadata
Assignees
Labels
performanceImprove performanceImprove performance