If your WordPress site feels sluggish when users click buttons, open menus, or interact with forms, there’s a Core Web Vital metric that measures exactly that. It’s called INP – Interaction to Next Paint.
Google replaced First Input Delay (FID) with INP on March 12, 2024. FID measured only the delay for the very first interaction. INP tracks every interaction a user makes during a visit and reports the slowest one.
This post covers what INP is, how it differs from FID, how to measure it, and the practical WordPress-specific fixes you can apply today.
What Is Interaction to Next Paint (INP)?
INP measures responsiveness: how much time passes between a user’s click, tap, or keypress and the moment the browser paints the next visual update.
For a given page visit, the final INP value is the time the single slowest interaction took. On pages with lots of interactions, Chrome ignores the slowest interaction for every 50 interactions, so one outlier doesn’t set the score.
Good INP values are 200 milliseconds or less. Poor values are greater than 500 milliseconds. – web.dev
Here are the thresholds:
- Good: 200 ms or less
- Needs Improvement: between 200 ms and 500 ms
- Poor: above 500 ms
Google measures INP at the 75th percentile of page loads, looking at mobile and desktop separately. If interactions take less than 200 ms for 75% of your visitors, your page passes.
How INP Differs from FID
FID measured only the input delay of the first interaction on a page. That left two important things out of the picture.
First, FID ignored everything after that first interaction. Someone might click a menu, fill out a form, and scroll through a carousel. Only the menu click counted.
Second, FID stopped measuring as soon as the browser started processing the event. It didn’t tell you how long the event handler took to run or how long the browser took to paint the result.
INP captures the full round-trip of an interaction. It starts when someone clicks or taps, includes the time it takes to run the event handler, and ends when the browser paints the next frame on screen. That makes INP a much better indicator of how responsive your site feels.
A site could easily pass FID if the first interaction came after the main thread went idle. Later interactions could still feel slow. INP catches those problems.
The Three Phases of INP
Every interaction that INP measures has three phases. Add up the time spent in each and you get the latency of that interaction. The longest phase tells you where to focus your optimization work.
Here, the click waits 170 ms for a third-party script to finish. Speeding up the click handler would save 50 ms at most. Delaying the script would remove most of the wait.
Input Delay
Input delay is the time between an interaction, such as a button click, and the moment the browser starts running its first event handler.
That wait happens when something else is keeping the main thread busy, typically a long-running JavaScript task. If a third-party analytics script is running a 300 ms task when someone clicks, the browser can’t start processing the click until the task finishes.
Interactions are especially likely to run into this wait during page load, when the browser is also busy evaluating scripts.
Processing Duration
Processing duration is how long the browser spends running the event handler callbacks themselves. It goes up if your click handler performs a complex DOM manipulation, fetches data synchronously, or triggers a heavy re-render.
A single interaction can fire multiple event handlers (for example, pointerdown, pointerup, click). The time each handler takes counts toward processing time.
Layout thrashing counts here too. If a handler changes styles and then reads a layout value like offsetHeight, the browser has to run layout inside the handler.
You don’t have to fit all of a handler’s work in before the next paint. Update what the user sees first, then move the rest to a later task. The scheduler.yield() section below shows how.
Presentation Delay
When the event handlers finish, the browser still has to recalculate styles, run layout, and paint the updated pixels. The time that takes is the presentation delay.
Large DOM trees and complex CSS selectors increase presentation delay. The bigger the DOM, the more rendering work the browser has to do. With thousands of DOM nodes on the page, each style recalculation takes longer.
Injecting a large chunk of HTML in response to a click has the same effect. Think of an AJAX product filter that replaces the whole product grid.
How to Measure INP
Several tools can help you measure INP and figure out what’s slowing an interaction down.
PageSpeed Insights (Field Data)
The simplest way to check your site’s INP is with PageSpeed Insights. Look at the “Discover what your real users are experiencing” section at the top. It shows field data from the Chrome User Experience Report (CrUX).
If your page doesn’t get enough traffic for CrUX data, you’ll see “N/A” for INP. Switch to the “Origin” view to see aggregate data for your entire domain instead.
PageSpeed Insights (Diagnostics)
Scroll past the Lighthouse score. Since Lighthouse 13, many of the old audits appear under “Insights”, with a shorter “Diagnostics” list just below.
In Insights, look for “Optimize DOM size”, “Forced reflow”, and “3rd parties”. Under Diagnostics, check “Reduce JavaScript execution time”, “Minimize main-thread work”, and “Avoid long main-thread tasks”. These all point to main-thread work that slows down interactions.
Lighthouse measures Total Blocking Time (TBT), not INP itself. But TBT is a strong lab proxy for INP, and reducing TBT almost always improves INP.
For a closer look at how to read those reports, see my guide to understanding PageSpeed Insights for WordPress.
Chrome DevTools Performance Panel
To debug an interaction yourself, open Chrome DevTools (F12) and go to the Performance tab. You don’t need to record anything to see the live metrics view. Click around the page and the panel will show your local INP. The Interactions list shows the timing and phases of each interaction.
If you want a closer look, record a trace while you interact with the page. The “Interactions” track in the timeline breaks each interaction down into input delay, processing duration, and presentation delay.
What Happened to the Web Vitals Extension?
Older guides may still point you to the Web Vitals Chrome extension. Google ended support for it in Chrome 132 (January 2025) and archived the project. You’ll find its features in the DevTools Performance panel now, so use that instead.
What Causes Poor INP in WordPress
A few common patterns lead to poor INP scores on WordPress sites. Here are the most frequent culprits.
1. Third-Party Scripts
Analytics trackers, chat widgets, ad networks, social media embeds, and marketing pixels all add JavaScript that runs on the main thread. If someone interacts with your page while one of those scripts is running, the browser can’t respond until it finishes.
Google Tag Manager alone can add dozens of tags, each running its own JavaScript. Facebook Pixel, Hotjar session recordings, and live chat widgets are also common offenders.
2. Heavy Themes and Plugins
Page builders like Elementor and Divi load a lot of JavaScript and generate large DOM trees. Slider plugins, mega menu plugins, and WooCommerce extensions all give the main thread more work to do.
The more plugins you activate, the more JavaScript they enqueue on every page load, even if the visitor never uses those features.
3. Large DOM Size
WordPress page builders often generate deeply nested HTML structures. A single Elementor section can produce dozens of wrapper div elements.
Lighthouse starts warning you at about 800 nodes in the body and flags an error at about 1,400. As the DOM grows, each style recalculation and layout pass takes longer. That extra time adds to presentation delay.
For specific ways to trim the DOM, see my guide to avoiding excessive DOM size in WordPress.
4. Unoptimized Event Handlers
Scroll listeners without throttling and resize handlers that trigger layout recalculations both increase processing time. So do click handlers that perform synchronous DOM reads followed by writes (layout thrashing).
How to Optimize INP in WordPress
The strategies below cover all three INP phases. Start with the ones that give you the biggest gains for the least effort.
A. Defer and Delay Non-Critical JavaScript
The biggest difference you can make to INP is to get JavaScript off the main thread during page load. There are two ways to approach that.
Deferring a script lets the browser download it in parallel with HTML parsing. The browser runs the script after it finishes parsing the document but before the DOMContentLoaded event. WordPress 6.3+ supports this natively through wp_enqueue_script‘s strategy parameter:
wp_enqueue_script(
'my-script',
get_template_directory_uri() . '/js/my-script.js',
array(),
'1.0',
array( 'strategy' => 'defer' )
);
Delaying a script means it won’t load at all until someone interacts with the page by scrolling, clicking, touching the screen, or pressing a key. It’s a more aggressive approach, and it’s more effective for scripts you don’t need right away.
The free Flying Scripts plugin handles this well. Give it keywords that identify the scripts you want to delay (like gtag, fbevents, or hotjar). Those scripts won’t run until the user’s first interaction or until a timeout you set expires.
Premium plugins like WP Rocket and Perfmatters offer the same functionality with additional controls. For more on how WP Rocket handles script exclusions, see my post on excluding scripts from JavaScript deferral.
B. Remove Unused JavaScript and CSS
Each JavaScript and CSS file the browser loads gives the main thread work to do. Cut the files you don’t need and you reduce both input delay and presentation delay.
With a plugin like Asset CleanUp or Perfmatters, you can turn off scripts and styles on pages that don’t need them. Take Contact Form 7: its JavaScript and CSS load on every page by default, but you only need them on your contact page.
Here’s how to audit unused assets:
- Open Chrome DevTools and go to the Coverage tab (press Ctrl+Shift+P and type “coverage”)
- Click the reload button to start recording
- Check the “Unused Bytes” column. Anything above 70-80% unused is a candidate for removal
- In the WordPress admin, use Asset CleanUp to disable those assets on pages that don’t need them
C. Reduce DOM Size
With a smaller DOM, the browser gets through style recalculations and layout passes faster. That directly reduces presentation delay.
If you’re using a page builder, consider switching to native WordPress blocks for simpler layouts. The block editor gives you cleaner HTML with fewer wrapper elements.
Product listing pages in WooCommerce stores can get very large. Rather than show all your products at once, use pagination or “load more”. Aim to keep the DOM below the 1,400-node mark that Lighthouse flags.
D. Optimize Event Handlers and Third-Party Scripts
When you write custom JavaScript for your WordPress site, keep your event handlers lean.
Throttle scroll and resize listeners. Scroll events can fire hundreds of times per second. Instead of running your code on every scroll event, use requestAnimationFrame or a throttle function:
let ticking = false;
document.addEventListener('scroll', () => {
if (!ticking) {
requestAnimationFrame(() => {
// your scroll logic here
ticking = false;
});
ticking = true;
}
});
Avoid layout thrashing. Don’t read layout properties (like offsetHeight or getBoundingClientRect()) and then immediately write to the DOM on each pass through a loop. Batch your reads first, then batch your writes:
// Bad: causes layout thrashing
elements.forEach(el => {
const height = el.offsetHeight; // read (forces layout)
el.style.height = height + 10 + 'px'; // write
});
// Good: batch reads, then batch writes
const heights = elements.map(el => el.offsetHeight);
elements.forEach((el, i) => {
el.style.height = heights[i] + 10 + 'px';
});
E. Break Up Long Tasks with scheduler.yield()
Long tasks (anything over 50 ms) block the main thread and increase input delay. The scheduler.yield() API lets you break a long task into smaller chunks, giving the browser a chance to handle user interactions between them.
async function processItems(items) {
for (const item of items) {
doWork(item);
// Yield to the browser so it can handle interactions
await scheduler.yield();
}
}
scheduler.yield() is supported in Chrome 129+, Edge 129+, and Firefox 142+, but not in Safari yet. Use it as a progressive enhancement, or add the scheduler-polyfill package for broader compatibility.
If you need an older option that still works everywhere, try setTimeout(callback, 0). It yields to the browser, but it doesn’t preserve task priority the way scheduler.yield() does.
FAQs
Here are some common questions about INP optimization for WordPress:
wp_enqueue_script, remove unused plugins, reduce your DOM size by simplifying templates, and optimize your custom JavaScript event handlers. Plugins like Flying Scripts, WP Rocket, or Perfmatters automate some of this, but they're not strictly required.
Summary
INP measures how quickly your site responds to real user interactions – every click, tap, and keypress throughout their visit. It replaced FID in March 2024 because it provides a far more complete picture of responsiveness.
To improve INP on your WordPress site, focus on the three phases: reduce input delay by deferring and delaying non-critical scripts, minimize processing time by keeping event handlers lean, and cut presentation delay by reducing your DOM size.
Start with the free Flying Scripts plugin to delay third-party scripts, audit your plugins for unused JavaScript, and check your DOM node count. Small, targeted changes add up fast.
