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
- Performance API — The browser interface for high-precision timing, which lets page code read measurements such as navigation phases, resource loads and custom marks.
- real-user monitoring — Measuring performance from real visitors' browsers and sending the data back, instead of only testing in a lab.
- Core Web Vitals — Google's three key user-experience metrics for web pages: Largest Contentful Paint for loading, Interaction to Next Paint for responsiveness and Cumulative Layout Shift for visual stability.
Taught in
- Core Web Vitals: Measuring And Optimizing LCP, INP, And CLS — Frontend Architecture & Web Platform