Spot Non-Composited Animations in Chrome DevTools

The animations track of a performance trace can now tell you why an animation was not composited.


This content originally appeared on Bram.us and was authored by Bramus!

New in Chrome DevTools in Chrome 131 is the ability to easily spot + debug non-composited animations from within the Performance tab. When you’ve recorded a trace, the animations track now shows the following:

  • Non-composited animations are marked with red triangles.
  • Upon selecting, you now see the reason + relevant properties for why compositing failed.

Here’s a before and after set of screenshots:

(For CSS Animations the track now also uses the name of keyframes instead of the anonymous “Animation” label)

Most common reason why an animation can’t be composited is that you are animating a property that cannot be composited (such as animating height or animating custom properties), but there are also other reasons such as using an animation-composition that is not replace.

~

This information was always present in Blink – you could find it through chrome://histograms – but it was never surfaced in DevTools until Paul Irish picked up the issue and piped the info from Blink into DevTools.

Building on Paul’s works, I took it over the finish line by adding all remaining CompositorAnimations::FailureReasons and also adding the red warning triangle, thereby allowing us to close this 11 year old feature request.

~


This content originally appeared on Bram.us and was authored by Bramus!


Print Share Comment Cite Upload Translate Updates
APA

Bramus! | Sciencx (2024-12-09T23:41:49+00:00) Spot Non-Composited Animations in Chrome DevTools. Retrieved from https://www.scien.cx/2024/12/09/spot-non-composited-animations-in-chrome-devtools/

MLA
" » Spot Non-Composited Animations in Chrome DevTools." Bramus! | Sciencx - Monday December 9, 2024, https://www.scien.cx/2024/12/09/spot-non-composited-animations-in-chrome-devtools/
HARVARD
Bramus! | Sciencx Monday December 9, 2024 » Spot Non-Composited Animations in Chrome DevTools., viewed ,<https://www.scien.cx/2024/12/09/spot-non-composited-animations-in-chrome-devtools/>
VANCOUVER
Bramus! | Sciencx - » Spot Non-Composited Animations in Chrome DevTools. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/12/09/spot-non-composited-animations-in-chrome-devtools/
CHICAGO
" » Spot Non-Composited Animations in Chrome DevTools." Bramus! | Sciencx - Accessed . https://www.scien.cx/2024/12/09/spot-non-composited-animations-in-chrome-devtools/
IEEE
" » Spot Non-Composited Animations in Chrome DevTools." Bramus! | Sciencx [Online]. Available: https://www.scien.cx/2024/12/09/spot-non-composited-animations-in-chrome-devtools/. [Accessed: ]
rf:citation
» Spot Non-Composited Animations in Chrome DevTools | Bramus! | Sciencx | https://www.scien.cx/2024/12/09/spot-non-composited-animations-in-chrome-devtools/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.