LargestContentfulPaint

The LargestContentfulPaint interface provides timing information about the largest image or text paint before user input on a web page.

MDN Reference

Properties

Link copied to clipboard
Link copied to clipboard

The element read-only property of the LargestContentfulPaint interface returns an object representing the Element that is the largest contentful paint.

Link copied to clipboard
Link copied to clipboard
val id: String

The id read-only property of the LargestContentfulPaint interface returns the ID of the element that is the largest contentful paint.

Link copied to clipboard

The loadTime read-only property of the LargestContentfulPaint interface returns the time that the element was loaded.

Link copied to clipboard
Link copied to clipboard
val size: Int

The size read-only property of the LargestContentfulPaint interface returns the intrinsic size of the element that is the largest contentful paint.

Link copied to clipboard
Link copied to clipboard
val url: String

The url read-only property of the LargestContentfulPaint interface returns the request URL of the element, if the element is an image.

Functions

Link copied to clipboard
open override fun toJSON(): JsAny

The toJSON() method of the LargestContentfulPaint interface is a Serialization; it returns a JSON representation of the LargestContentfulPaint object.