Total Blocking Time

Read a loading trace, calculate the blocking portions of long tasks, and verify the first interaction after a fix.

If the page appears but ignores an early click, inspect the work occupying the browser's main thread. Total Blocking Time is a lab signal for this loading-time problem. In a Sitepulse performance result, use a high TBT to prioritise a trace investigation; the number alone cannot identify the responsible script or prove how every visitor experiences the page.

Account for the blocking part of long tasks

Lighthouse measures TBT between First Contentful Paint and its Time to Interactive boundary, even though TTI is no longer a displayed metric. In that window, a task longer than 50 milliseconds contributes only the portion beyond 50 milliseconds to TBT. Many short tasks and one very long task can therefore produce different blocking totals even if their combined execution time is similar.

Example tasks in a loading trace:
  80 ms task  →  30 ms blocking
 120 ms task  →  70 ms blocking
  45 ms task  →   0 ms blocking
 210 ms task  → 160 ms blocking
Total blocking contribution: 260 ms

The purpose of this calculation is to expose stretches when an input cannot be handled promptly. It is not a measurement of network waiting or of every interaction throughout a visit.

Keep the test conditions attached to the result

Compare the underlying durations and the run's conditions, not just a coloured rating. CPU settings, device profile and the scripts delivered during the run affect the result. One fast desktop run should not stand in for a slower mobile audience.

Separate lab TBT from field INP. They can point toward related main-thread problems, but improving one does not certify the other. A page can do little work during loading and still run an expensive filter when a visitor clicks later.

Find the responsible tasks

Record the page in DevTools and select a long task. Trace the work to its source: application startup, hydration, a large data transformation, repeated DOM operations or a third-party integration. Check whether the work belongs on this route and whether it must happen before the first useful task.

  • Remove initialisation for features that are absent from the page.
  • Reduce the amount of data processed synchronously during startup.
  • Split work into meaningful units that allow input and rendering between them.
  • For suitable independent calculations, assess moving the computation off the main thread rather than merely rescheduling the same large task.

Check the first real interaction

Retest immediately after the relevant button or field becomes visible. Delaying a large task can lower a loading metric while moving the pause onto the user's first click. Keep visible feedback and required validation intact during the change.

Verify the repaired trace

Re-run the same Sitepulse URL after deployment and compare several equivalent runs. Confirm that the identified long task became smaller, disappeared or was moved into a workflow where it no longer blocks the task. Check browser exceptions and the actual feature result as well.

Use unused JavaScript analysis when too much code arrives initially, and INP diagnosis when the delay occurs during later interactions. Treat opportunity estimates as leads rather than additive promises of time saved.

Technical references