Total Blocking Time
A lab metric adding up how long the main thread was blocked by long tasks while the page was loading.
In more detail
Any task over 50 milliseconds blocks input; TBT sums the part of each such task above that limit. Heavy third-party scripts and large bundles are common causes.
Example
Loading scripts afterInteractive or lazyOnload with next/script keeps the main thread free.Related terms
- main thread — The first thread a program starts with; in a browser page it also runs JavaScript and handles input, layout and painting.
- Core Web Vitals — Google's set of user-experience metrics for loading, responsiveness and visual stability, used in search ranking.
- next/script — The Next.js Script component, which loads third-party JavaScript with a chosen strategy so it does not block the page.
Taught in
- Script Optimization: next/script & Lazy Third Parties — Next.js 15 & Modern App Router Architecture