PerformancePaintTiming extension type

The PerformancePaintTiming interface provides timing information about "paint" (also called "render") operations during web page construction. "Paint" refers to conversion of the render tree to on-screen pixels.

There are two key paint moments this API provides:

  • (FP): Time when anything is rendered. Note that the marking of the first paint is optional, not all user agents report it.
  • (FCP): Time when the first bit of DOM text or image content is rendered.

A third key paint moment is provided by the LargestContentfulPaint API:

  • (LCP): Render time of the largest image or text block visible within the viewport, recorded from when the page first begins to load.

The data this API provides helps you minimize the time that users have to wait before they can see the site's content start to appear. Decreasing the time until these key paint moments make sites feel more responsive, performant, and engaging for your users.

Like other Performance APIs, this API extends PerformanceEntry.


API documentation sourced from MDN Web Docs.

on
Implemented types
Available extensions

Properties

duration double
The read-only duration property returns a that is the duration of the . The meaning of this property depends on the value of this entry's PerformanceEntry.entryType.
no setterinherited
entryType String
The read-only entryType property returns a string representing the type of performance metric that this entry represents.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
name String
The read-only name property of the PerformanceEntry interface is a string representing the name for a performance entry. It acts as an identifier, but it does not have to be unique. The value depends on the subclass.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startTime double
The read-only startTime property returns the first recorded for this . The meaning of this property depends on the value of this entry's PerformanceEntry.entryType.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJSON() JSObject
The toJSON() method is a ; it returns a JSON representation of the PerformanceEntry object.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited