@mocanvas/editor · interface

TLPerfLongAnimationFrameScript

interface TLPerfLongAnimationFrameScript

One script attributed to a long animation frame, as the browser reports it.

Mirrors the PerformanceScriptTiming entries the Long Animation Frames API produces; every field is optional because browser support for the API is partial and uneven, and an adapter must not throw on a browser that reports half of it.


Properties · 11

duration?: number | undefined
entryType?: string | undefined
forcedStyleAndLayoutDuration?: number | undefined

Time the script forced style or layout to be recomputed.

invoker?: string | undefined

What ran the script: an event listener, a timer, a promise callback.

invokerType?: string | undefined
name?: string | undefined
pauseDuration?: number | undefined

Time spent in a synchronous pause — an alert, a sync XHR.

sourceCharPosition?: number | undefined
sourceFunctionName?: string | undefined
sourceURL?: string | undefined
startTime?: number | undefined

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.