If clicks on your site feel a half-second late, the usual culprit is a 'long task' — a chunk of JavaScript that hogs the browser's single work line for more than 50 milliseconds. While it runs, your tap just waits in line. That delay is exactly what INP (Interaction to Next Paint) measures.
Think of the browser as a one-lane checkout: if a customer ahead has a giant cart, everyone behind waits, no matter how small their basket.
How to spot and ease them:
— In DevTools Performance tab, record an interaction — long tasks show as red-flagged bars
— Break big scripts into smaller pieces so the browser can pause between them
— Delay non-urgent work (analytics, tracking) until after the page is interactive
Try this: Record yourself clicking your main menu, find the longest red bar, and ask what it's doing. Naming the hog is half the fix.
Vitals 101
@CoreVitals101
Why your buttons feel laggy: long tasks
This post was published in the Telegram channel Vitals 101 (@CoreVitals101). All its posts are on the channel page.
Open on Telegram