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.

- Official Google Threshold (
p75):<= 200 millisecondsisGood(Green),200 – 500 msNeeds Improvement, and> 500 msisPoor(Red). - Unlike retired First Input Delay (
FID),INPmonitors 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 and6,000-node DOM trees hurtINPjust 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)
- Dissecting the 3 Sequential Phases of Every WordPress Interaction
- Phase 1 Deep Dive: Eliminating Input Delay Caused by Startup Long Tasks
- Replay Ordering Matters on First Tap!
- Phase 2 Deep Dive: Optimizing Processing Time & Yielding to the Browser (scheduler.yield())
- Phase 3 Deep Dive: Why Presentation Delay Secretly Ruins INP on Elementor & Mega-Stores
- Diagnosing Slow Interactions & Long Animation Frames (LoAF) in Chrome DevTools
- WooCommerce Storefront Interaction Audit Checklist (5 Must-Test Touchpoints)
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
INPtimer 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,tapon touchscreen,keydown). Passive scrolling, pinch-zooming, and mouse hovering do not count asINPinteractions (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,
INPequals 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 atp75 <= 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 Phase | Healthy Budget | What Happens Inside Chromium | Top WordPress / WooCommerce Culprits | KadiCache Remedy |
|---|---|---|---|---|
| 1. Input Delay | < 50 ms | User 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-migrate | Delay JS Until Interaction + YouTube Preview Facade + Bloat Removal |
| 2. Processing Time | < 100 ms | Browser executes all pointerdown, mouseup, and click JS callbacks attached to the tapped element | Heavy mega-menu JS cloning 400 links, wc-ajax=get_refreshed_fragments, synchronous DOM queries inside GTM click triggers | Smart Cart Fragments + scheduler.yield() code hygiene + pruning GTM click listeners |
| 3. Presentation Delay | < 50 ms | Callbacks finish; browser recalculates CSS rules, computes layout geometry, paints layers & composites the frame | 5,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 |
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 a420 msLong 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, waiting420 msbehind startup bloat produces a445 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?
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:
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?
- Toggling Classes on
<body>or<html>Invalidates Styles Across Every Element: Many WordPress themes toggledocument.body.classList.add("mobile-menu-open")when opening a drawer. When your page carries1,100 KB(18,000rules) of unused Elementor + WooCommerce CSS across5,800DOM nodes, Chrome has to re-match descendant selectors across thousands of below-the-fold product cards before it can paint the drawer! - 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.
Two KadiCache Cloud Pro engines attack Presentation Delay directly:
- Cloud Remove Unused CSS: Strips
95%–98%of dead CSS selectors from the page—so whenmobile-menu-opentoggles, 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 by40%–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:
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:
- 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 animatesleftorwidthinstead oftransform: translateX(...), switch to GPU-compositedtransformrules for smooth 60fps frames. - 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. - 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. - 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.
- 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.
PageSpeed & Lighthouse Warnings Directly Affecting INP
Lighthouse flags “Minimize main-thread work” when a simulated mobile CPU spends over 2.0 seconds (amber) or 4.0 seconds (red) parsing HTML/CSS, evaluating JavaScript, recalculating styles, and painting massive DOM trees.
Google Lighthouse warns at 800 DOM elements and fails red past 1,400 elements, > 32 nesting depth, or > 60 child nodes. Trim Elementor/WooCommerce DOM bloat and skip off-screen rendering with Zero-CLS Lazy Render.
INP Frequently Asked Questions
Why does PageSpeed Insights Lab Data show Total Blocking Time (TBT) instead of INP?
Does scrolling down a blog post without clicking anything record an INP score?
How can CSS optimization improve a JavaScript interactivity metric like INP?
What if my mobile hamburger menu feels unresponsive on the very first tap when Delay JS is enabled?
Why is Desktop INP almost always green (40 ms) while Mobile INP fails (320 ms)?
Creator of KadiCache’s Early PHP Drop-In, 7-Driver Object Cache Engine, Cloud Remove Unused CSS, and Zero-CLS Lazy Render pipeline.
Configure Delay Until Interaction, data-kadicache-no-delay, and plugin exclusions.
Cut off-screen style and layout Presentation Delay by 40–65% on long pages.
Pair sub-200ms INP responsiveness with sub-1.2s mobile LCP.
Keep delayed sliders and menus visually rock-steady at 0.000 CLS.