← Back to Blog

INP Attribution — Which Click Actually Broke The 200ms Budget

INP Attribution — Which Click Actually Broke The 200ms Budget

INP replaced FID as a Core Web Vital in March 2024. The aggregate number is easy to measure. The per-interaction attribution is the hard part — and it's what actually tells you what to fix.

INP Attribution Profiler loads your URL in an iframe, subscribes to PerformanceObserver with event + long-animation-frame types, and captures every interaction that crosses 50 ms. For each one, it records the event target (tag + id + class), the processing duration, and the script origins blocking the main thread during the long frame.

The three signals it captures

Interaction entries. PerformanceObserver with type: 'event' fires once per slow interaction. Each entry includes duration, processingStart, processingEnd, and the target element. Anything over 200 ms is a CWV failure; anything over 100 ms is a warning.

Long Animation Frame entries. The LoAF API (2024) exposes which scripts executed during a frame that blocked rendering. You get a scripts array with sourceURL and per-script duration. This is how you attribute to a specific third-party bundle.

Script-origin rollup. The tool tallies blocking-milliseconds per origin across all long frames. One GA4 script blocking 1200 ms across 8 frames is the same signal as eight separate 150 ms blocks — and the tool makes both visible.

What to do with the output

The AI fix prompt emits specific patches: defer heavy third-party scripts, break long tasks with requestIdleCallback, debounce input handlers, move expensive DOM measurements off the critical path. For any slow pointerdown / click interaction, the target selector tells you which React component needs a React.memo or a useDeferredValue.

Limitations

Cross-origin iframes block PerformanceObserver. For accurate measurement, deploy this tool on the same origin as the target page (or run it against your own site). Same-origin runs expose everything; cross-origin runs gracefully degrade to a warning.

Related reading

Fact-check notes and sources


The $100 Network covers shipping performant sites across a network. The attribution profiler is how you diagnose the one page that's dragging the aggregate down.

← Back to Blog

Accessibility Options

Text Size
High Contrast
Reduce Motion
Reading Guide
Link Highlighting
Accessibility Statement

J.A. Watte is committed to ensuring digital accessibility for people with disabilities. This site conforms to WCAG 2.1 and 2.2 Level AA guidelines.

Measures Taken

  • Semantic HTML with proper heading hierarchy
  • ARIA labels and roles for interactive components
  • Color contrast ratios meeting WCAG AA (4.5:1)
  • Full keyboard navigation support
  • Skip navigation link
  • Visible focus indicators (3:1 contrast)
  • 44px minimum touch/click targets
  • Dark/light theme with system preference detection
  • Responsive design for all devices
  • Reduced motion support (CSS + toggle)
  • Text size customization (14px–20px)
  • Print stylesheet

Feedback

Contact: jwatte.com/contact

Full Accessibility StatementPrivacy Policy

Last updated: April 2026