From FID to INP: Navigating Google's Core Web Vitals Evolution
Why measuring only initial input queue latency failed to capture main-thread stalls, and how full-lifecycle frame timing reshaped client telemetry engineering.
Direct Definition
The FID to INP Transition is the W3C and Chrome User Experience Report (CrUX) architectural upgrade that deprecated First Input Delay - which measured only the input queue wait time of the first interaction - in favor of Interaction to Next Paint (INP), which audits the complete Input Delay, Processing Time, and Presentation Delay of all interactions across the entire document lifecycle.
Architectural Blind Spots of First Input Delay (FID)
When First Input Delay was introduced in 2020, its instrumentation relied solely on the delta between an initial hardware event timestamp (event.timeStamp) and the moment the browser Event Loop began invoking the first registered listener (processingStart). While useful for detecting heavy bundle parsing during initial HTML load, FID suffered from two structural blind spots that allowed sluggish scripts to pass CrUX audits with a 99%+ "Good" rating:
| Telemetry Dimension | Legacy First Input Delay (FID) | Interaction to Next Paint (INP) |
|---|---|---|
| Session Sampling Scope | Strictly the 1st discrete interaction after document load; ignores the remaining 99% of session life. | Every click, tap, and keydown throughout the entire session (reports worst or p98). |
| Event Handler Execution | Excluded. Stops the clock the microsecond processingStart begins. |
Included. Audits every synchronous listener invoked during Phase 2. |
| Style, Layout & Paint Commit | Excluded. Blind to forced reflows and compositor frame drops. | Included. Clock stops only when the next visual frame is painted. |
| 75th Percentile Thresholds | Good: ≤100ms | Poor: >300ms | Good: ≤200ms | Poor: >500ms |
Because FID ignored both callback execution time and frame rendering, a third-party script could attach an expensive synchronous click listener that froze the main thread for 400ms on the very first click - and provided the main thread happened to be idle the instant the user clicked, FID recorded a pristine 0ms delay.
Why Deferred Script Tricks Failed Under INP
During the FID era, tag managers commonly bypassed initial load audits by delaying third-party script injection until the first pointerdown or scroll event fired. Under INP, that exact workaround became an immediate liability: booting a heavy telemetry script or initializing a MutationObserver API tree walker in response to a user interaction directly inflates the interaction's Processing and Presentation phases.
Single-page applications (SPAs) expose this even further by keeping the same document context alive across dozens of virtual route transitions. Detached DOM nodes, accumulating event listeners, and periodic V8 Major GC (Mark-Sweep-Compact) pauses occurring three minutes into a browsing session now carry the exact same diagnostic weight as initial page load stalls.
Instrumenting Long Animation Frames (LoAF) & Event Timing
To engineer telemetry for the INP standard, runtime code must respect the full frame pipeline exposed by the browser's PerformanceEventTiming and Long Animation Frames (long-animation-frame) APIs. Rather than executing analytical computations inside input callbacks, our Zero DOM-Blocking Architecture monitors frame budget health and defers non-visual work past the compositor commit boundary:
// Auditing full-lifecycle interaction latency via PerformanceObserver
const observer = new PerformanceObserver((list) => {
for (const entry of list.getEntries()) {
if (!entry.interactionId) continue;
snippet
const inputDelay = entry.processingStart - entry.startTime;
const processingTime = entry.processingEnd - entry.processingStart;
const presentationDelay = (entry.startTime + entry.duration) - entry.processingEnd;
// Telemetry runtime verifies its own Phase 2 footprint remains < 1ms
if (entry.duration > 200) {
console.debug('[CWV Audit] Slow interaction frame:', {
totalINP: entry.duration,
inputDelay,
processingTime,
presentationDelay
});
}
}
});
observer.observe({ type: 'event', durationThreshold: 16, buffered: true });
By treating all three phases of the frame pipeline as a unified 16.67ms budget, passive vector capture ensures that behavioral synthesis never delays visual feedback - whether on the first click or the five-hundredth interaction of an extended session.
Related Glossary Concepts
Future-Proof Your Telemetry for the INP Era
Replace synchronous DOM hooks with zero-blocking kinetic vector streams that keep Input, Processing, and Presentation delays well below Google's 200ms threshold.