How to Fix INP on a WordPress or Shopify Website
How to fix INP on a WordPress, WooCommerce or Shopify site: find the slow interaction, see which part is slow, then cut long tasks, scripts and page size.
Murad Raza
Freelance Full-Stack Developer

To fix INP, find the click, tap or key press that is slow for real visitors, work out which part of it is slow, then remove the JavaScript work that blocks the browser at that moment. The usual suspects to check are third-party scripts, heavy menus and sliders, oversized pages and long JavaScript tasks. A good INP is 200 milliseconds or less.
I'm Murad Raza, a freelance web developer building WordPress and Shopify sites since 2022. This guide is not based on a new test of my own. The thresholds and techniques come from Google's web.dev and Search Central documentation, linked inline.
Key Takeaways
- INP measures how fast a page responds to clicks, taps and key presses across the whole visit.
- Good is 200 ms or less, needs improvement is up to 500 ms, and poor is above 500 ms, measured at the 75th percentile of real visits.
- Every slow interaction splits into input delay, processing time and presentation delay. Fix the part that is actually slow.
- Check long JavaScript tasks, third-party scripts and page size first.
What INP measures
Interaction to Next Paint replaced First Input Delay as a Core Web Vital on March 12, 2024, according to Google Search Central.
web.dev's INP guide defines it as a metric that observes "the latency of all click, tap, and keyboard interactions" during a visit. The final value is "the longest interaction observed, ignoring outliers". Scrolling and hovering do not count.
| INP at the 75th percentile | Rating |
|---|---|
| 200 ms or less | Good |
| Above 200 ms, up to 500 ms | Needs improvement |
| Above 500 ms | Poor |
Google's Core Web Vitals page says these metrics align with what its "core ranking systems seek to reward".
Step 1: Find the slow interaction with field data
web.dev's optimisation guide says the work should "start with field data". In practice, a fast office laptop can hide a delay that a mid-range phone shows.
Two free places to look:
- PageSpeed Insights. Enter a URL and read the top section, which shows Chrome User Experience Report (CrUX) data from real Chrome users.
- Google Search Console. The Core Web Vitals report groups similar pages, so you can see whether product pages, blog posts or the homepage are the problem.
CrUX shows a page is slow, but as web.dev's field data guide puts it, it cannot "tell you what is causing problems". For that, a developer can add the attribution build of the web-vitals JavaScript library, which reports which element was clicked and where the time went. Without that, test the usual suspects by hand: the mobile menu, add-to-cart, filters, accordions and the cookie banner.
Step 2: Work out which part is slow
web.dev splits every interaction into three parts, and the total of the three is the interaction's latency:
- Input delay. The wait before your code starts running, usually because the main thread is busy with another task.
- Processing time. The time your event handlers take to run.
- Presentation delay. The time the browser needs to recalculate layout and paint the result.
In Chrome DevTools, record the slow click in the Performance panel and expand the interaction. If most of the time sits before the handler, look at what else was running. If the handler itself is long, the code needs work. If the gap is after the handler, look at layout and page size.
Step 3: Apply the fix that matches
Each subsection below maps to one part: long tasks cause input delay, heavy handlers cause processing time, and big pages cause presentation delay.
Cut long tasks on the main thread
According to web.dev's long tasks guide, "any task that takes longer than 50 milliseconds is a long task". While one runs, the browser cannot respond to a tap. On WordPress and Shopify sites, good suspects to check are chat widgets, review apps, tracking pixels, heatmaps and slider libraries loading on every page. My post on why a WordPress site gets slow covers how to spot them.
Practical steps:
- Remove plugins and apps you no longer use. On Shopify, also check App embeds in the theme editor and the theme files for code an old app left behind.
- Load chat and review widgets only on the pages that need them, or after the visitor interacts.
- Use defer on scripts not needed to show the page. This mainly helps taps during loading; removing or delaying a script saves more.
Make event handlers do less
web.dev's best general advice is "to do as little work as possible" in event callbacks. Update what the visitor sees first, such as opening the menu or showing "Added to cart", then let tracking and other background work wait. A developer can split that work with setTimeout or the newer scheduler.yield(), which web.dev describes as "just a function that returns a Promise that will be resolved in a future task". Safari does not support it yet, so keep a setTimeout fallback.
Shrink the page
Large pages take longer to update after a click. web.dev's DOM size guide notes that Lighthouse treats a DOM as excessive when it "exceeds 1,400 nodes". Simplify nested page-builder layouts and paginate long lists.
The optimisation guide suggests two more fixes. Avoid layout thrashing, where code changes a style and then reads a size straight away, forcing layout inside the interaction. And use the CSS content-visibility property to render off-screen sections lazily.
Platform notes for WordPress and Shopify
On WordPress and WooCommerce, start with a plugin audit: disable plugins one at a time on a staging copy and re-test the slow interaction. My guide on why a WooCommerce store gets slow walks through it.
On Shopify, theme code and app scripts are the main levers you control. My post on Shopify speed optimisation covers them.
After each change, wait for fresh field data. PageSpeed Insights reports real visits "over the previous 28-day collection period", so a fix takes a few weeks to show fully.
If you would rather hand this over, my performance optimisation service covers script audits and theme fixes. Speed work is quoted after a quick audit.
Frequently asked questions
01Does INP affect Google rankings?
02Why does Lighthouse not show my INP?
03Can a caching plugin fix INP?
Need this fixed on your site?
I Build Websites That Work as Hard as You Do


