Skip to main content
KadiCache
Core Web Vital · Good <= 200 ms14 min read1,817 wordsVerified 2026-11-23

Interaction to Next Paint (INP) in WordPress & WooCommerce: Complete Guide

Interaction to Next Paint (INP) measures how responsive your WordPress site feels every time a visitor taps a mobile menu, clicks a WooCommerce swatch, or opens an accordion. Learn how to diagnose Input Delay, Processing, and Presentation Delay using Chrome LoAF — and fix all three cleanly.

Interaction to Next Paint (INP) WordPress performance benchmark diagram
0.000 Layout Shift8 Sections✓ Verified
Good (Pass at p75)
<= 200 ms
Needs Improvement
200 – 500 ms
Poor · Weight
> 500 ms · Field Core Vital (Lab Proxy: TBT 30%)
ANATOMY OF AN INTERACTION: INPUT DELAY + PROCESSING TIME + PRESENTATION DELAY (<= 200 MS)PHASE 1 · INPUT DELAY (< 50ms)Waiting for 3rd-party Long TasksFix: Safe Delay JS + YouTube FacadePHASE 2 · PROCESSING (< 100ms)JS click/tap callbacks & cart AJAXFix: Smart Cart Fragments + scheduler.yield()PHASE 3 · PRESENTATION (< 50ms)Style recalc, layout & next frame paintFix: Lazy Render + Cloud RUCSSUser Tap / Click / Keypress → Browser Main Thread → Visual Feedback Painted on Screen (<= 200 ms p75)Unlike legacy FID (first tap only), INP monitors every interaction throughout the entire session and reports the worst latency.
Every click, tap, or keypress traverses three main-thread phases: Input Delay + Event Processing Time + Next-Frame Presentation Delay <= 200 ms.W3C / CrUX Spec
WP Admin -> KadiCache -> CSS & JavaScript (Defer & Delay JS)
MODULE INP · 2X RETINA
JavaScript Minification, Defer, and Delay execution controls with automatic jQuery and WooCommerce safeguards.2880×1840 WebP
⚡ Executive Summary · 30-Second Spec100% Code-Verified
WP Admin Path
WP Admin -> KadiCache -> CSS & JavaScript + Core Web Vitals
Measured Impact
Good <= 200 ms (p75) · Sub-75 ms Cached Storefront Target
DevTools Proof Marker
PerformanceObserver (event + long-animation-frame)
  • Official Google Threshold (p75): <= 200 milliseconds is Good (Green), 200 – 500 ms Needs Improvement, and > 500 ms is Poor (Red).
  • Unlike retired First Input Delay (FID), INP monitors every click, tap, and key press across the entire page lifetime and reports the slowest interaction (98th percentile on pages with 50+ interactions).
  • Every interaction equals Input Delay (< 50 ms) + Processing Time (< 100 ms) + Presentation Delay (< 50 ms)—meaning bloated CSS and 6,000-node DOM trees hurt INP just as badly as slow JavaScript!
  • KadiCache attacks all 3 phases together: Delay JS Until Interaction + YouTube Preview Facade cut Input Delay, Smart Cart Fragments cuts WooCommerce AJAX lag, and Zero-CLS Lazy Render + Cloud Remove Unused CSS slash Presentation Delay.
Table of Contents (8 sections)

What INP Actually Measures (And Why Retired FID Lied About WordPress Speed)#

For years, sites running 18 marketing pixels, heavy Elementor sliders, and unthrottled WooCommerce cart scripts passed First Input Delay (FID) at 99% while feeling noticeably laggy on mid-range smartphones. Why? Because FID had two huge blind spots: it only measured the very first tap, and it stopped the stopwatch the instant the browser started running your event listener—even if your JavaScript handler then froze the screen for 750 ms before opening the mobile menu!

Interaction to Next Paint (INP)—now Google’s official Interactivity Core Web Vital—fixes both blind spots:

  • Full Tap-to-Pixels Latency: The INP timer starts at hardware input (pointerdown / keydown / click) and does not stop until the browser finishes running all event callbacks, recalculating styles, laying out the DOM, and presenting the next painted frame to the user’s eyes.
  • Tracked Across the Entire Visit: Whether a shopper taps a size swatch 4 seconds after landing or opens the mini-cart drawer 3 minutes later, Chrome measures every discrete interaction (click, tap on touchscreen, keydown). Passive scrolling, pinch-zooming, and mouse hovering do not count as INP interactions (though scroll-event JS listeners can still block the main thread right when a user taps!).
  • Worst-Interaction Selection: On pages with fewer than 50 interactions, INP equals the single slowest interaction of the visit; on long interactive sessions (50+ taps), Chrome selects the 98th-percentile interaction to ignore rare one-off OS hiccups, then evaluates your URL across all visitors at p75 <= 200 ms.

Dissecting the 3 Sequential Phases of Every WordPress Interaction#

Whenever Search Console or Cookieless RUM reports INP > 200 ms on your mobile pages, the delay always lives inside one (or more) of three consecutive slices on the browser’s single main thread:

Interaction PhaseHealthy BudgetWhat Happens Inside ChromiumTop WordPress / WooCommerce CulpritsKadiCache Remedy
1. Input Delay< 50 msUser taps screen, but the main thread is already busy executing another task—so your click waits in the queue!Google Tag Manager (gtm.js), Meta/TikTok pixels, live chat boot (Intercom/Crisp), YouTube base.js, jquery-migrateDelay JS Until Interaction + YouTube Preview Facade + Bloat Removal
2. Processing Time< 100 msBrowser executes all pointerdown, mouseup, and click JS callbacks attached to the tapped elementHeavy mega-menu JS cloning 400 links, wc-ajax=get_refreshed_fragments, synchronous DOM queries inside GTM click triggersSmart Cart Fragments + scheduler.yield() code hygiene + pruning GTM click listeners
3. Presentation Delay< 50 msCallbacks finish; browser recalculates CSS rules, computes layout geometry, paints layers & composites the frame5,500-node Elementor/WooCommerce DOM + 1.1 MB of unused CSS selectors re-evaluated on body.menu-open class toggle!Zero-CLS Lazy Render (content-visibility: auto) + Cloud Remove Unused CSS
FIG 01Enabling Delay Until Interaction and jQuery dependency guards inside WP Admin -> KadiCache -> CSS & JavaScriptZoom 2x

Phase 1 Deep Dive: Eliminating Input Delay Caused by Startup Long Tasks#

Over 60% of real-world WordPress INP failures happen during the first 5 seconds after FCP ("rage-tapping while scripts hydrate"). Picture a mobile shopper arriving from an Instagram ad onto /product/linen-overshirt/:

  • At t = 0.8 s, thanks to Early Delivery and Pro Local Improve LCP, the product photo and Size: M / L / XL buttons are already visible on screen.
  • At t = 1.4 s, the shopper taps Size: L—right while the phone’s CPU is locked inside a 420 ms Long Task compiling Google Tag Manager, Klaviyo, Hotjar, and an embedded below-the-fold YouTube review player!
  • Even if the size-swatch click handler itself takes 8 ms, waiting 420 ms behind startup bloat produces a 445 ms (Needs Improvement) INP!

Enabling Delay JavaScript Until Interaction (DelayJsOptimizer.php) + Replace YouTube iframes with preview image (MediaLazyOptimizer.php) in KadiCache Free Core clears third-party tracking pixels, chat widgets, and video players completely off the startup main thread—dropping Lighthouse TBT toward 0 ms and keeping the main thread idle when the shopper taps.

Replay Ordering Matters on First Tap!#

Here is a subtle detail many naive "delay all JS" snippets get wrong: if you delay 25 scripts and replay all 25 scripts in one synchronous burst on the user’s first tap—loading Google Analytics and TikTok Pixel ahead of your mobile hamburger menu script—then that very first tap suffers a 600 ms INP spike! KadiCache’s DelayScriptClassifier.php prioritizes interactive UI scripts ahead of background analytics beacons and lets you keep tiny critical header scripts immediate via data-kadicache-no-delay (Delay JS & Exclusions Guide).

Phase 2 Deep Dive: Optimizing Processing Time & Yielding to the Browser (scheduler.yield())#

What if the click handler itself does heavy work—such as filtering a 60-product WooCommerce grid, opening a search modal, or firing five analytics trackEvent() calls inside the same synchronous click listener?

FIG 02Eliminating background wc-ajax=get_refreshed_fragments contention for browsing guests inside WP Admin -> KadiCache -> CSS & JavaScriptZoom 2x

For custom theme and plugin developers, the single highest-impact modern browser pattern is updating visual UI state first, yielding to the browser with scheduler.yield() so Chrome paints immediate visual feedback, and running analytics or non-urgent work afterward:

JAVASCRIPTModern INP-Safe Click Handler Pattern for WordPress Themes (scheduler.yield)
addToCartBtn.addEventListener("click", async () => {
  // 1. Immediate lightweight visual feedback (< 5 ms)
  addToCartBtn.classList.add("is-loading");
  addToCartBtn.setAttribute("aria-busy", "true");

  // 2. Yield so Chrome paints the spinner BEFORE heavy JS / analytics run!
  if ("scheduler" in window && "yield" in scheduler) {
    await scheduler.yield();
  } else {
    await new Promise((resolve) => setTimeout(resolve, 0));
  }

  // 3. Perform cart / filter work & defer marketing pixels to idle time
  await submitWooCommerceAjaxCart();
  requestIdleCallback(() => sendMarketingConversionEvents());
});

Alongside clean theme listeners, Audit your Google Tag Manager (GTM) "All Elements Click" triggers: GTM containers that evaluate 30 regex DOM-scraping variables on every single tap anywhere on the page routinely add 60–140 ms of hidden Processing Time on budget Android CPUs!

Phase 3 Deep Dive: Why Presentation Delay Secretly Ruins INP on Elementor & Mega-Stores#

Suppose your mobile menu click listener takes just 4 ms (drawer.classList.toggle("is-open")), yet DevTools still reports 290 ms INP (280 ms Presentation Delay)! How can toggling one CSS class freeze an iPhone or Galaxy phone for 280 ms?

  1. Toggling Classes on <body> or <html> Invalidates Styles Across Every Element: Many WordPress themes toggle document.body.classList.add("mobile-menu-open") when opening a drawer. When your page carries 1,100 KB (18,000 rules) of unused Elementor + WooCommerce CSS across 5,800 DOM nodes, Chrome has to re-match descendant selectors across thousands of below-the-fold product cards before it can paint the drawer!
  2. Expensive Layout & Paint on Off-Screen Sections: Without rendering containment, subtle root changes force browser layout recalculation all the way down to your mega-footer.
FIG 03Skipping off-screen style and layout work on deep landing pages inside WP Admin -> KadiCache -> Core Web VitalsZoom 2x

Two KadiCache Cloud Pro engines attack Presentation Delay directly:

  • Cloud Remove Unused CSS: Strips 95%–98% of dead CSS selectors from the page—so when mobile-menu-open toggles, Chrome evaluates ~400 active CSS rules instead of 18,000!
  • Zero-CLS Lazy Render (content-visibility: auto): Tells Chromium to skip style, layout, and paint work on deep off-screen sections—cutting DOM layout recalculation cost by 40%–65% on long catalog and landing pages.

Diagnosing Slow Interactions & Long Animation Frames (LoAF) in Chrome DevTools#

Paste this diagnostic snippet into Chrome DevTools -> Console on a mobile-emulated (4x CPU slowdown) Incognito tab, then tap your mobile menu, search icon, FAQ accordions, and WooCommerce variation swatches to log every slow interaction (> 100 ms) broken down by exact phase:

JAVASCRIPTLive 3-Phase INP & Culprit Element Logger for Chrome DevTools Console
new PerformanceObserver((list) => {
  for (const entry of list.getEntries()) {
    if (!entry.interactionId || entry.duration < 100) continue;
    const inputDelay = Math.round(entry.processingStart - entry.startTime);
    const processing = Math.round(entry.processingEnd - entry.processingStart);
    const presentation = Math.round(entry.startTime + entry.duration - entry.processingEnd);
    console.warn(`[INP ${Math.round(entry.duration)}ms] ${entry.name}`, {
      inputDelayMs: inputDelay,
      processingMs: processing,
      presentationMs: presentation,
      target: entry.target,
    });
  }
}).observe({ type: "event", buffered: true, durationThreshold: 40 });

In Chrome 123+, you can also inspect long-animation-frame (LoAF) entries in the DevTools Performance panel (Interactions track): click any red-flagged interaction bar to see the exact script URL (gtm.js, swiper.min.js, or a custom theme script) responsible for blocking the frame!

WooCommerce Storefront Interaction Audit Checklist (5 Must-Test Touchpoints)#

Before signing off on any WooCommerce store optimization, test these five high-revenue mobile touchpoints with Chrome DevTools 4x CPU slowdown active:

  1. Mobile Hamburger Navigation & Mega-Menu Accordions: Tap to open and close your primary category drawer right after initial load (t = 1.5 s). If your theme animates left or width instead of transform: translateX(...), switch to GPU-composited transform rules for smooth 60fps frames.
  2. Single-Product Variation Swatches (Color / Size): Tapping a color swatch on a variable product with 40+ variations triggers WooCommerce’s variation matching script—keep WooCommerce’s global variation threshold clean and strip dead third-party listeners via Delay JavaScript.
  3. AJAX Add-to-Cart & Slide-Out Mini-Cart Drawer: Ensure Smart Cart Fragments is enabled inside CSS & JavaScript -> Commerce & Smart Cart (WooCommerce Guide) and 7-Driver Object Cache accelerates backend cart fragment responses.
  4. Shop Archive Faceted Filters (Price Sliders & Checkboxes): Combine Zero-CLS Lazy Render on deep product grids with debounced filter requests so filtering 48 products never freezes the UI.
  5. Checkout Field Validation & Payment Method Radio Toggles: Because /checkout/ intentionally bypasses shared HTML page cache, persistent Object Cache (Relay / PhpRedis / APCu) + Heartbeat Throttling (Bloat & Heartbeat Guide) keeps checkout AJAX validation snappy.

INP Frequently Asked Questions

Why does PageSpeed Insights Lab Data show Total Blocking Time (TBT) instead of INP?
Because INP requires real human clicks, taps, or key presses—which an automated non-interactive Lighthouse page load does not perform! In synthetic Lab tests, Total Blocking Time (TBT, weighted at 30% of the score) serves as the closest lab proxy for startup Input Delay, while KadiCache’s Cookieless RUM and Google CrUX measure true real-user INP.
Does scrolling down a blog post without clicking anything record an INP score?
No. By W3C specification, scrolling and hovering are continuous gestures rather than discrete INP interactions. Only clicks, touchscreen taps, and keyboard presses generate INP measurements.
How can CSS optimization improve a JavaScript interactivity metric like INP?
Because INP includes Presentation Delay—the time Chrome spends recalculating CSS styles and layout to paint the next frame after your click handler runs! Stripping 95%+ of unused CSS rules (Cloud Remove Unused CSS) and skipping off-screen DOM rendering (Lazy Render) makes frame presentation dramatically faster.
What if my mobile hamburger menu feels unresponsive on the very first tap when Delay JS is enabled?
If your theme’s mobile menu relies on a tiny vanilla JS toggle script, add that single menu script handle (or data-kadicache-no-delay on its <script> tag) to Delay JavaScript Exclusions so the menu is instant from millisecond zero while 95% of heavy marketing/widget JS stays delayed!
Why is Desktop INP almost always green (40 ms) while Mobile INP fails (320 ms)?
Mid-range mobile smartphone CPUs have 3x to 6x slower single-core JavaScript and layout execution than desktop M-series or Intel processors, plus touch taps often coincide with mobile layout shifts or heavy sticky mobile drawers.
1-Click KadiCache INP Remedy
Test your live INP score or deploy KadiCache in under 2 minutes.
E-E-A-T Source Verified

Creator of KadiCache’s Early PHP Drop-In, 7-Driver Object Cache Engine, Cloud Remove Unused CSS, and Zero-CLS Lazy Render pipeline.

apps/wordpress-plugin/src/Optimization/DelayJsOptimizer.phpapps/wordpress-plugin/src/Optimization/ScriptOptimizer.phpapps/wordpress-plugin/src/Integrations/Plugins/WooCommerceCartFragments.php
Connected Topical Cluster · Continue Deepening Your Setup