Class LargestContentfulPaint
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
The LargestContentfulPaint interface provides timing information about the largest image or text paint before user input on a web page.
[Value("LargestContentfulPaint")]
public class LargestContentfulPaint : PerformanceEntry
- Inheritance
-
LargestContentfulPaint
- Inherited Members
Remarks
Constructors
LargestContentfulPaint()
public LargestContentfulPaint()
Properties
Element
The element read-only property of the LargestContentfulPaint interface returns an object representing the Element that is the largest contentful paint.
[Value("element")]
public Element? Element { get; }
Property Value
Remarks
Id
The id read-only property of the LargestContentfulPaint interface returns the ID of the element that is the largest contentful paint.
[Value("id")]
public string Id { get; }
Property Value
- string
A string containing the ID of the element, or the empty string if there is no such ID.
Remarks
LoadTime
The loadTime read-only property of the LargestContentfulPaint interface returns the time that the element was loaded.
[Value("loadTime")]
public Number LoadTime { get; }
Property Value
Remarks
RenderTime
The renderTime read-only property of the LargestContentfulPaint interface represents the time that the element was rendered to the screen.
[Value("renderTime")]
public Number RenderTime { get; }
Property Value
- Number
The
renderTimeproperty can have the following values:
Remarks
Size
The size read-only property of the LargestContentfulPaint interface returns the intrinsic size of the element that is the largest contentful paint.
[Value("size")]
public ulong Size { get; }
Property Value
- ulong
An integer representing the width times height of the element.
Remarks
The size of the element is the width times height of the DOMRectReadOnly that this element creates on the screen.
Url
The url read-only property of the LargestContentfulPaint interface returns the request URL of the element, if the element is an image.
[Value("url")]
public string Url { get; }
Property Value
- string
A string containing a URL.
Remarks
Methods
ToJSON()
The toJSON() method of the LargestContentfulPaint interface is a {{Glossary("Serialization","serializer")}}; it returns a JSON representation of the LargestContentfulPaint object.
[Value("toJSON")]
public Object ToJSON()
Returns
- Object
A {{jsxref("JSON")}} object that is the serialization of the LargestContentfulPaint object.The JSON doesn't contain the Element property because it is of type Element, which doesn't provide a
toJSON()operation.