SpinTheMic
Pro

Explain it in 60 seconds

Main thread work and long tasks

Frontend Engineering · Web Performance · Intermediate

What is main-thread work, and why do long tasks hurt responsiveness?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Main thread runs JS, layout, paint, input handling.
  • Long task: > 50ms.
  • Blocks responses to input.
  • Break up work; yield.
  • Move work to workers.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics