Class PerformanceLongAnimationFrameTiming
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
NOTE
ExperimentalPerformanceLongAnimationFrameTiming 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
ExperimentalblockingDuration 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
Remarks
-Long animation frame timing
-PerformanceScriptTiming
-Optimize long tasks on web.dev (2024)
Duration
[Value("duration")]
public Number Duration { get; }
Property Value
EntryType
[Value("entryType")]
public string EntryType { get; }
Property Value
FirstUIEventTimestamp
NOTE
ExperimentalfirstUIEventTimestamp 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
Remarks
Name
[Value("name")]
public string Name { get; }
Property Value
RenderStart
NOTE
ExperimentalrenderStart 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
Remarks
Scripts
NOTE
Experimentalscripts 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.
StartTime
[Value("startTime")]
public Number StartTime { get; }
Property Value
StyleAndLayoutStart
NOTE
ExperimentalstyleAndLayoutStart 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
Remarks
Methods
ToJSON()
NOTE
ExperimentaltoJSON() 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.