Table of Contents

Class PerformanceLongAnimationFrameTiming

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll
NOTE
Experimental
The PerformanceLongAnimationFrameTiming interface is specified in the Long Animation Frames API and provides metrics on long animation frames (LoAFs) that occupy rendering and block other tasks from being executed.
[Value("PerformanceLongAnimationFrameTiming")]
public class PerformanceLongAnimationFrameTiming : PerformanceEntry, PaintTimingMixin
Inheritance
PerformanceLongAnimationFrameTiming
Implements
Inherited Members

Remarks

Constructors

PerformanceLongAnimationFrameTiming()

public PerformanceLongAnimationFrameTiming()

Properties

BlockingDuration

NOTE
Experimental
The blockingDuration read-only property of the PerformanceLongAnimationFrameTiming interface returns a Number indicating the total time in milliseconds for which the main thread was blocked from responding to high priority tasks, such as user input.
[Value("blockingDuration")]
public Number BlockingDuration { get; }

Property Value

Number

A Number.

Remarks

Duration

[Value("duration")]
public Number Duration { get; }

Property Value

Number

EntryType

[Value("entryType")]
public string EntryType { get; }

Property Value

string

FirstUIEventTimestamp

NOTE
Experimental
The firstUIEventTimestamp read-only property of the PerformanceLongAnimationFrameTiming interface returns a Number indicating the time of the first UI event — such as a mouse or keyboard event — to be processed during the current animation frame. Note this timestamp can be before the start of this animation frame if there was a delay between the event happening and it being processed.
[Value("firstUIEventTimestamp")]
public Number FirstUIEventTimestamp { get; }

Property Value

Number

A Number.

Remarks

Name

[Value("name")]
public string Name { get; }

Property Value

string

RenderStart

NOTE
Experimental
The renderStart read-only property of the PerformanceLongAnimationFrameTiming interface returns a Number indicating the start time of the rendering cycle, which includes Window.RequestAnimationFrame callbacks, style and layout calculation, ResizeObserver callbacks, and IntersectionObserver callbacks.
[Value("renderStart")]
public Number RenderStart { get; }

Property Value

Number

A Number.

Remarks

Scripts

NOTE
Experimental
The scripts read-only property of the PerformanceLongAnimationFrameTiming interface returns an array of PerformanceScriptTiming objects.
[Value("scripts")]
public PerformanceScriptTiming[] Scripts { get; }

Property Value

PerformanceScriptTiming[]

An array of PerformanceScriptTiming objects.

Remarks

Script attribution is provided only for scripts running in the main thread of a page, including same-origin <iframe>s. However, cross-origin <iframe>s, web workers, service workers, and extension code will not have script attribution in long animation frames, even if they impact the duration of one.

-Long animation frame timing
-PerformanceScriptTiming

See also on MDN

StartTime

[Value("startTime")]
public Number StartTime { get; }

Property Value

Number

StyleAndLayoutStart

NOTE
Experimental
The styleAndLayoutStart read-only property of the PerformanceLongAnimationFrameTiming interface returns a Number indicating the beginning of the time period spent in style and layout calculations for the current animation frame.
[Value("styleAndLayoutStart")]
public Number StyleAndLayoutStart { get; }

Property Value

Number

A Number.

Remarks

Methods

ToJSON()

NOTE
Experimental
The toJSON() method of the PerformanceLongAnimationFrameTiming interface is a {{Glossary("Serialization","serializer")}}; it returns a JSON representation of the PerformanceLongAnimationFrameTiming object.
[Value("toJSON")]
public Object ToJSON()

Returns

Object

A {{jsxref("JSON")}} object that is the serialization of the PerformanceLongAnimationFrameTiming object.

Remarks