[meta] Too many restyles when opening new tabs
Categories
(Firefox :: Tabbed Browser, enhancement, P3)
Tracking
()
People
(Reporter: florian, Unassigned)
References
(Depends on 1 open bug, Blocks 1 open bug)
Details
(Keywords: meta, Whiteboard: [fxperf:meta])
See this profile: https://perfht.ml/2H93fE4
Whenever we have a restyle (light blue markers) that's not followed by a paint, we are wasting time (and causing jank).
Currently it seems each time we open a new tab we restyle 3 times.
The first time is the result of flushing styles by setting the focus in focusAndSelectUrlBar.
The second time seems to be a layout flush (which flushes styles first). I'm not sure we can avoid it, but it would be good to check if we can avoid invalidating styles between the previous style flush and this layout flush.
The third one is when the refresh driver ticks and we paint. We can't avoid this one, especially as the style invalidation is caused by the CSS animations.
Updated•6 years ago
|
Updated•6 years ago
|
Updated•5 years ago
|
Reporter | ||
Comment 2•4 years ago
|
||
Yes, here is a profile captured today, that still shows the same behavior: https://share.firefox.dev/39DtA86
Updated•4 years ago
|
Updated•2 years ago
|
Description
•