LargestContentfulPaint: presentationTime property

فهرست فصل‌ها دانلود آرشیوناشر

MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونه‌کد

{{APIRef("Performance API")}}

The **presentationTime** read-only property of the {{domxref("LargestContentfulPaint")}} interface returns the {{domxref("DOMHighResTimeStamp","timestamp")}} when the painted pixels were actually drawn on the screen.

The presentationTime value is nullable: the underlying timestamp is implementation-defined, so browsers that don't populate it return null instead. Because {{domxref("LargestContentfulPaint.paintTime")}} is always populated the same way across implementations, it's the more reliable value to use for metrics that need to be comparable across browsers.

Value

A {{domxref("DOMHighResTimeStamp")}} or {{jsxref("null")}} if the value is not exposed.

Examples

See Observing separate paint and presentation timings.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also

  • {{domxref("LargestContentfulPaint.paintTime")}}