Chrome 125 Introduces New Performance APIs for Better Web Vitals Monitoring

Chrome 125 ships with new Performance APIs that provide deeper insights into Core Web Vitals, enabling developers to debug and optimize web performance more effectively.

New Performance APIs

Long Animation Frames API

The Long Animation Frames API replaces the Long Tasks API with more comprehensive data:

const observer = new PerformanceObserver((list) => {
  for (const entry of list.getEntries()) {
    console.log({
      duration: entry.duration,
      renderTime: entry.renderTime,
      styleAndLayoutTime: entry.styleAndLayoutTime,
      scripts: entry.scripts.map(s => ({
        name: s.name,
        type: s.type,
        duration: s.duration,
        invoker: s.invoker,
      })),
    });
  }
});
observer.observe({ type: 'long-animation-frame', buffered: true });

Navigation Activation API

Provides insights into how navigations are triggered:

Updated PerformanceResourceTiming

Enhanced resource timing data:

Impact on CWV Debugging

These APIs enable:

  1. LCP Debugging: Identify exactly which resource is the LCP element and why it's slow
  2. INP Attribution: Pinpoint which event handler is causing poor INP
  3. CLS Source Identification: Know exactly which element shifted and why

SEO Implications

Better debugging tools mean:

Browser Support

API Chrome Firefox Safari
Long Animation Frames 125+ Pending Pending
Navigation Activation 125+ Pending Pending
Enhanced ResourceTiming 125+ 128+ 17.5+

Developer Resources