Technical SEO
Long task
A long task is a block of JavaScript execution occupying the main thread for more than fifty milliseconds, during which the page cannot respond to input.

What is long task?
A long task is a block of JavaScript execution occupying the main thread for more than fifty milliseconds, during which the page cannot respond to input. Interaction latency is largely the sum of the long tasks in the way.
What turns on it
It is the mechanism behind a page that looks ready and ignores taps, which is what Interaction to Next Paint measures.
The mechanics
Found in a performance trace and reduced by breaking work into smaller chunks, yielding to the main thread, and moving computation off it where possible.
The misconception
Reducing total JavaScript weight does not necessarily help. One large task blocks interaction more than several small ones of the same total size.
That is the whole of it. Anything more specific depends on the site in front of you.
Where this comes up in the work
It is part of Agentic Commerce, and more specifically of Universal Commerce Protocol setup. Across the rest of the work it shows up in:
- Agentic Commerce, where getting it wrong shows up in connecting the agent’s answer to the exact variant rather than the category
- App Store Optimization, where it sets the ceiling on working out which keyword the icon is actually competing on
- Marketplace Marketing, since keeping variants grouped the way the marketplace expects is only as good as this is
- Content and Editorial, in which it shows up as briefing so that writing becomes assembly rather than invention
What to check
Two questions that establish whether this is actually in order on a given site:
- Whether the thing being reported is the thing you think is being reported
- Whether it holds on a mid-range phone and not only on the machine it was built on
Common questions
What does fixing long task involve?
The diagnosis is cheap. The fix ranges from an afternoon to a project depending on how deep it sits in the build, and we scope the second after doing the first.
How urgent is long task?
It comes before work that assumes it is already handled, and after anything actively blocking indexation.
How would we know long task is a problem?
By measuring it rather than by argument. Found in a performance trace and reduced by breaking work into smaller chunks, yielding to the main thread, and moving computation off it where possible.
Is long task just another name for something?
Reducing total JavaScript weight does not necessarily help. One large task blocks interaction more than several small ones of the same total size. Worth clarifying before agreeing to work on it. Retargeting and audience systems deals with the first ninety days, Paid social measurement with everything after them.
Is long task a ranking factor?
It is the mechanism behind a page that looks ready and ignores taps, which is what Interaction to Next Paint measures. Whether that becomes a ranking change depends on what else is true about the site, which is why it is worth measuring rather than assuming. Abu Dhabi goes through this properly, and Ahmedabad shows where it stops working.
How do you check long task on a site?
Found in a performance trace and reduced by breaking work into smaller chunks, yielding to the main thread, and moving computation off it where possible. Read Nonprofit and NGO for the standard approach and Real estate and property for when the standard approach does not fit.
Have the awkward questions answered first
A conversation about the problem, not a presentation about us. Bring whatever data exists.
