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
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, orsetTimeoutchunks. - 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:
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.
Related reading
- How to reduce Total Blocking Time (TBT): Reduce Total Blocking Time: find long tasks in the Performance panel, split JavaScript, yield to the main thread and defer third-party scripts until needed.
- DNS propagation: how long it takes and how to check it: How DNS propagation really works: why TTL decides the wait, how nameserver changes differ, how to check resolvers with dig and how to migrate with no downtime.
- How to reduce TTFB (server response time): Practical ways to reduce time to first byte: edge caching, fewer redirects, faster queries, warm runtimes and closer servers, in order of impact.
- MySQL slow query log: how to enable and read it: Enable the MySQL slow query log without a restart, choose a sensible threshold, summarise it with mysqldumpslow and pt-query-digest, and fix what it finds.
- What is alert flapping?: Alert flapping explained: why alerts fire and resolve over and over, and the fixes that work: sustained conditions, hysteresis, cooldowns and grouping.
- React performance monitoring: Monitor React apps in production: Core Web Vitals from real users, slow renders and INP, bundle size, errors with source maps.
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.