@mocanvas/editor · interface

TLPerfLongAnimationFrame

interface TLPerfLongAnimationFrame

A frame the browser considered long enough to be worth reporting.

The useful field is blockingDuration: the part of the frame during which the main thread could not respond to input, which is what a person actually perceives as a stall.


Properties · 6

blockingDuration?: number | undefined

How long the main thread was unresponsive.

duration?: number | undefined
renderStart?: number | undefined

When rendering work began within the frame.

scripts: readonly TLPerfLongAnimationFrameScript[]

Scripts the browser could attribute the time to.

startTime?: number | undefined
styleAndLayoutStart?: number | undefined

When style and layout began within the frame.

mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.