Skip to content

Monitoring glossary

What is Total Blocking Time (TBT)?

Total Blocking Time adds up how long the main thread was too busy to respond to input during page load. It is a lab metric that predicts poor responsiveness.

3 min read9 sectionsUpdated

On this page

Key points

  • A long task is any main-thread task over 50 ms.
  • TBT sums the part of each long task beyond 50 ms, between FCP and when the page becomes interactive.
  • Lighthouse treats 200 ms or less as good; above 600 ms is poor.
  • TBT is a lab proxy for INP, which is measured on real interactions.

How TBT is calculated

Every task on the main thread that runs longer than 50 ms blocks input. Only the excess counts:

Task durationBlocking time
30 ms0 ms
70 ms20 ms
250 ms200 ms
120 ms70 ms
Total290 ms

TBT and INP

INP (Interaction to Next Paint) is the Core Web Vital for responsiveness. It measures real interactions from real visitors across the whole visit. TBT only exists in lab tests and only covers load. They usually move together: long tasks during load make early clicks slow. Use TBT to find and fix the long tasks in a lab run, and INP from real users to confirm it worked.

Reducing TBT

  • Ship less JavaScript: remove unused libraries, split bundles by route.
  • Defer non-critical scripts such as chat widgets and analytics until after load or interaction.
  • Break up long tasks with await scheduler.yield() where supported, or setTimeout chunks.
  • Move heavy work off the main thread with Web Workers.
  • Hydrate less: render static parts on the server and avoid hydrating what never changes.

Finding long tasks

Run Lighthouse or the Performance panel in Chrome devtools and look for tasks marked in red. The bottom-up view shows which scripts consume the time. In the field, this snippet logs long tasks for the current page:

javascript
new PerformanceObserver((list) => {
  for (const t of list.getEntries()) console.log('long task', Math.round(t.duration), 'ms', t.attribution?.[0]?.containerSrc || '');
}).observe({ type: 'longtask', buffered: true });

The usual suspects

Tag managers loading many third-party scripts, large client-side frameworks hydrating the whole page, A/B testing scripts that block rendering, chat widgets and heavy analytics are behind most high TBT scores. Loading them later, or only on the pages that need them, is often the biggest single improvement.

Frequently asked questions

Is TBT a Core Web Vital?

No. It is a lab metric used by Lighthouse. Its field counterpart for responsiveness is INP.

Can I measure TBT on real users?

Not directly, but the Long Animation Frames API and INP give field data on the same problem.

Watch your own site and services with VitalRix

Uptime checks, APM, logs, real-user monitoring, alerts and status pages in one place. Every product has a free tier and no credit card is needed.