🚀 Launch countdown

9 December 2026

PageSpeed

Avoid Long Main-Thread Tasks

Main-thread tasks taking longer than 50 ms that block input handling.

Why it matters

Tasks over 50 ms block user input and delay event handlers, directly hurting responsiveness and Interaction to Next Paint.

How to fix it

  1. Break long tasks into smaller chunks so the browser can process input between them.
  2. Defer non-urgent work away from active interaction paths.
  3. Profile traces to find the exact functions causing long tasks.
  4. Move heavy synchronous work into a web worker.

Where to find it

This finding is reported in the PageSpeed tab, and appears in Findings under the matching severity.

A term you don't recognise is defined in the glossary.

Other pagespeed findings

Findings library, by category.