PerformanceObserver

A browser API that calls you back whenever new performance entries of chosen types are recorded, such as largest-contentful-paint or event timings.

In more detail

observer.observe({ type: 'largest-contentful-paint', buffered: true }) also delivers entries recorded before you subscribed. It is the basis of real-user monitoring libraries.

Related terms

Taught in

References