INP (Interaction to Next Paint) replaced FID as a Core Web Vital in March 2024. The same WordPress sites that landed FID under 100 ms now show INP above 300 ms, because INP measures the worst interaction in a session, not the first. Optimizing INP on a WordPress site is largely about finding which interaction handlers run too long, and which plugins ship them.
What’s happening
INP measures the time between a user input (tap, click, keypress) and the next paint that visually reflects the response. It has three phases:
- Input delay — time from the input event until the handler starts running (blocked by other long tasks)
- Processing time — time spent executing the event handler
- Presentation delay — time from handler completion to the next browser paint
A WordPress site with INP > 200 ms usually has one or two scripts that monopolize the main thread. Common offenders: analytics that aggregate scroll events, ad-tag containers that re-evaluate on every interaction, page-builder JS that re-runs layout on every click, and chatbot widgets that initialize lazily but synchronously.
How to verify
Measure INP in the field via Chrome DevTools or the web-vitals JS library:
# In Chrome DevTools console:
import('https://unpkg.com/web-vitals?module').then(({ onINP }) => {
onINP(({ value, attribution }) => console.log('INP:', value, attribution));
});
The attribution object identifies the element and handler that produced the worst interaction. From there, use the Performance panel:
# Chrome DevTools → Performance → record while clicking the offending element
# Look for long tasks (>50 ms) in the main thread track
# The task name reveals the script and function
For automated monitoring, ship the web-vitals library in WordPress and POST INP samples to a custom endpoint or analytics destination.
The fix
- Reduce input delay: defer scripts that are not needed for first interaction. Add
deferorasyncto third-party tags. UserequestIdleCallbackfor non-critical initialization. Usewp_dequeue_scriptto drop scripts the current template does not need. - Reduce processing time: break long handlers into smaller chunks with
setTimeout(fn, 0)orscheduler.yield(). If a plugin’s event handler is the culprit, contact the plugin maintainer or replace the plugin. The most common rewrite is replacing akeyuphandler that filters a 5000-item table with a debounced version. - Reduce presentation delay: avoid layout thrashing. Read-write-read-write patterns force the browser to recalculate layout repeatedly. Group reads, then writes. Avoid setting
style.heighton a parent during a click handler — it triggers a synchronous layout for every descendant. - Drop unnecessary main-thread work: audit
window.dataLayer.pushcalls, analytics SDKs that wrapaddEventListener, and ad bidders that run on every interaction. Replace heavy analytics SDKs withsendBeaconcalls that do not block the main thread. - Test with throttling: enable 4x CPU throttling in DevTools and re-measure. A WordPress page that hits INP 180 ms on a fast laptop will hit 400 ms on a mid-range phone, which is where the field score lives.
INP is harder to fix than LCP because it depends on user behavior. Optimize the heaviest interactions first (form submission, menu open, cart add) and accept that some interactions will need their handlers rewritten.
Stack Harbor measures INP in the field across enterprise WordPress hosting accounts using the web-vitals library and a private endpoint. If your INP is failing on mobile and you cannot isolate the handler, book a 30-minute review.