The same main-thread work can be partitioned differently by task and frame boundaries. This lesson reconstructs each quantity from its own ledger before comparing what it can diagnose.
This lesson continues The Gold Standard of Websites, the Gold Standard of Education and the How X Works hub. Every task duration, frame boundary and rendering interval is an original teaching fixture. It explains published formulas without claiming a production trace.
Keep the Lighthouse measurement window, individual tasks, animation-frame boundaries, rendering duration and per-frame blockingDuration separate. Milliseconds alone cannot establish that two records measure the same object.
The W3C Long Animation Frames API draft defines long-animation-frame entries and blockingDuration. The Chrome Lighthouse Total Blocking Time documentation defines the laboratory metric and its reporting window.
THE GOLD STANDARD · WEBSITES
TBT aggregates long-task excess in a lab window; LoAF blockingDuration belongs to one frame entry
Total Blocking Time is a Lighthouse laboratory metric that sums the portion of qualifying main-thread tasks beyond 50 milliseconds during a defined loading window. Long Animation Frame timing reports frame-oriented entries and computes blockingDuration from tasks within the frame, with rendering duration folded into the longest task before the same 50-millisecond allowance is applied. Similar units do not make the records interchangeable.
Fast route
Start with the decisive rule.
Start this route
Measurement route
Build the browser evidence ledger.
Start this route
Comparison route
Separate the nearest lookalikes.
Start this route
Transfer route
Change the context and retest.
Start this route
Reporting route
State limits and continue reading.
Start this route
Chapter contents
Open the full chapter index
- 1. Give the short formula rule
- 2. Define the TBT window
- 3. Define a long animation frame entry
- 4. Apply the fifty-millisecond allowance
- 5. Fold rendering into LoAF correctly
- 6. Do not sum frame duration as blocking
- 7. Separate diagnostic object from score
- 8. Handle multiple tasks in one frame
- 9. Handle one task across visual consequences
- 10. Compare laboratory and field traces
- 11. Use script attribution cautiously
- 12. Relate blocking to input evidence
- 13. Diagnose style and layout
- 14. Solve a changed frame ledger
- 15. Repair blocking shortcuts
- 16. State limits and misconceptions
- 17. Write a reproducible blocking record
- 18. Use authoritative sources and continue the route
1. Give the short formula rule
TBT sums task duration minus 50 ms for qualifying long tasks in its lab window; each LoAF entry calculates blockingDuration from task durations inside that frame, adding render duration to the longest task before allowances.
Original worked example. Tasks of 80 and 120 ms contribute 30+70=100 ms TBT. A frame containing them plus 25 ms rendering follows the LoAF frame formula. The identifiers, timestamps and observations are explicit so the reader can reconstruct the decision instead of trusting a label.
Changed-context transfer. Put the tasks in separate frames. TBT is unchanged while per-frame blockingDuration is redistributed. State what changed, predict the consequence and revise only the conclusion that depended on that condition.
Practical evidence check. Record task, frame, window and formula. If this check fails, mark the claim unavailable and repair the method before continuing.
Keep raw observations, lifecycle boundaries, calculations and conclusions separate so the first unsupported inference remains visible.
Before closing, reconcile the worked example against the chapter rule: identify the eligible evidence, recompute the result, test the changed condition, and mark the first unsupported inference. Preserve the original inputs beside the revised conclusion so another reader can tell what changed. End the chapter with three sentences: what the evidence establishes, what it does not establish and what observation or calculation would change the conclusion. This keeps the lesson useful when the browser state, observation window or implementation context changes. A strong record also names the datum, denominator, section or coordinate system that governed the decision, so a later reader can repeat the reasoning without importing an unstated shortcut.
2. Define the TBT window
A Lighthouse result belongs to its controlled navigation and metric window rather than the whole lifetime of the page.
Original worked example. Three long tasks during loading contribute; a task five minutes later is outside the lab run. The identifiers, timestamps and observations are explicit so the reader can reconstruct the decision instead of trusting a label.
Changed-context transfer. Extend the scripted observation to the later interaction. The reported scope changes. State what changed, predict the consequence and revise only the conclusion that depended on that condition.
Practical evidence check. Save tool version, start, end and throttling. If this check fails, mark the claim unavailable and repair the method before continuing.
Use a positive case, a clean negative case and an unavailable case. Unavailable evidence is not zero.
Before closing, reconcile the worked example against the chapter rule: identify the eligible evidence, recompute the result, test the changed condition, and mark the first unsupported inference. Preserve the original inputs beside the revised conclusion so another reader can tell what changed. End the chapter with three sentences: what the evidence establishes, what it does not establish and what observation or calculation would change the conclusion. This keeps the lesson useful when the browser state, observation window or implementation context changes. A strong record also names the datum, denominator, section or coordinate system that governed the decision, so a later reader can repeat the reasoning without importing an unstated shortcut.
Previous chapter · Contents · Next chapter
3. Define a long animation frame entry
A LoAF entry covers main-thread work associated with one long frame or blocking episode under the specification.
Original worked example. One frame starts at 2000 ms, includes two tasks and completes rendering at 2140 ms. The identifiers, timestamps and observations are explicit so the reader can reconstruct the decision instead of trusting a label.
Changed-context transfer. Move one task after the rendering update. It belongs to another frame entry. State what changed, predict the consequence and revise only the conclusion that depended on that condition.
Practical evidence check. Preserve startTime, duration, renderStart and tasks. If this check fails, mark the claim unavailable and repair the method before continuing.
Repeat the reasoning after changing one consequential premise while holding every other field fixed.
Before closing, reconcile the worked example against the chapter rule: identify the eligible evidence, recompute the result, test the changed condition, and mark the first unsupported inference. Preserve the original inputs beside the revised conclusion so another reader can tell what changed. End the chapter with three sentences: what the evidence establishes, what it does not establish and what observation or calculation would change the conclusion. This keeps the lesson useful when the browser state, observation window or implementation context changes. A strong record also names the datum, denominator, section or coordinate system that governed the decision, so a later reader can repeat the reasoning without importing an unstated shortcut.
Previous chapter · Contents · Next chapter
4. Apply the fifty-millisecond allowance
Only the excess beyond 50 ms contributes for each qualifying duration in both formulas, but the grouped inputs differ.
Original worked example. A 49 ms task contributes zero; a 70 ms task contributes 20 ms. The identifiers, timestamps and observations are explicit so the reader can reconstruct the decision instead of trusting a label.
Changed-context transfer. Split a 100 ms task into two 50 ms tasks. The simple excess sum changes although total work does not. State what changed, predict the consequence and revise only the conclusion that depended on that condition.
Practical evidence check. Keep task boundaries visible. If this check fails, mark the claim unavailable and repair the method before continuing.
Carry one plausible alternative through the ledger and choose the next observation that separates it from the leading account.
Before closing, reconcile the worked example against the chapter rule: identify the eligible evidence, recompute the result, test the changed condition, and mark the first unsupported inference. Preserve the original inputs beside the revised conclusion so another reader can tell what changed. End the chapter with three sentences: what the evidence establishes, what it does not establish and what observation or calculation would change the conclusion. This keeps the lesson useful when the browser state, observation window or implementation context changes. A strong record also names the datum, denominator, section or coordinate system that governed the decision, so a later reader can repeat the reasoning without importing an unstated shortcut.
Previous chapter · Contents · Next chapter
5. Fold rendering into LoAF correctly
LoAF adds rendering duration to the longest task before computing excess, rather than creating an unrelated metric.
Original worked example. Tasks 60 and 40 ms plus 30 ms rendering make the adjusted longest duration 90; blocking contributions are 40 and 0. The identifiers, timestamps and observations are explicit so the reader can reconstruct the decision instead of trusting a label.
Changed-context transfer. Move rendering to a frame with no long script. Recompute that entry instead of leaving the prior value. State what changed, predict the consequence and revise only the conclusion that depended on that condition.
Practical evidence check. Store renderStart, frame end and adjusted task list. If this check fails, mark the claim unavailable and repair the method before continuing.
Write the expected result before checking the outcome, then preserve conflicts instead of smoothing them away.
Before closing, reconcile the worked example against the chapter rule: identify the eligible evidence, recompute the result, test the changed condition, and mark the first unsupported inference. Preserve the original inputs beside the revised conclusion so another reader can tell what changed. End the chapter with three sentences: what the evidence establishes, what it does not establish and what observation or calculation would change the conclusion. This keeps the lesson useful when the browser state, observation window or implementation context changes. A strong record also names the datum, denominator, section or coordinate system that governed the decision, so a later reader can repeat the reasoning without importing an unstated shortcut.
Previous chapter · Contents · Next chapter
6. Do not sum frame duration as blocking
A 140 ms frame duration is not automatically 90 ms blockingDuration; task composition and rendering rules matter.
Original worked example. The frame includes idle gaps and two subthreshold tasks, producing less blocking than duration minus 50. The identifiers, timestamps and observations are explicit so the reader can reconstruct the decision instead of trusting a label.
Changed-context transfer. Replace idle time with one continuous 120 ms task. Blocking rises. State what changed, predict the consequence and revise only the conclusion that depended on that condition.
Practical evidence check. Rebuild from tasks, not the headline duration. If this check fails, mark the claim unavailable and repair the method before continuing.
Archive exact sources, versions, calculations and receipts so another reader can reproduce the conclusion.
Before closing, reconcile the worked example against the chapter rule: identify the eligible evidence, recompute the result, test the changed condition, and mark the first unsupported inference. Preserve the original inputs beside the revised conclusion so another reader can tell what changed. End the chapter with three sentences: what the evidence establishes, what it does not establish and what observation or calculation would change the conclusion. This keeps the lesson useful when the browser state, observation window or implementation context changes. A strong record also names the datum, denominator, section or coordinate system that governed the decision, so a later reader can repeat the reasoning without importing an unstated shortcut.
Previous chapter · Contents · Next chapter
7. Separate diagnostic object from score
TBT is a lab score input; LoAF entries are runtime diagnostic observations with scripts and frame phases.
Original worked example. Lighthouse reports 420 ms TBT while LoAF identifies one script URL and style/layout phase. The identifiers, timestamps and observations are explicit so the reader can reconstruct the decision instead of trusting a label.
Changed-context transfer. Collect LoAF only after load. It cannot reconstruct earlier TBT. State what changed, predict the consequence and revise only the conclusion that depended on that condition.
Practical evidence check. Align observation periods before comparison. If this check fails, mark the claim unavailable and repair the method before continuing.
Keep raw observations, lifecycle boundaries, calculations and conclusions separate so the first unsupported inference remains visible.
Before closing, reconcile the worked example against the chapter rule: identify the eligible evidence, recompute the result, test the changed condition, and mark the first unsupported inference. Preserve the original inputs beside the revised conclusion so another reader can tell what changed. End the chapter with three sentences: what the evidence establishes, what it does not establish and what observation or calculation would change the conclusion. This keeps the lesson useful when the browser state, observation window or implementation context changes. A strong record also names the datum, denominator, section or coordinate system that governed the decision, so a later reader can repeat the reasoning without importing an unstated shortcut.
Previous chapter · Contents · Next chapter
8. Handle multiple tasks in one frame
Several tasks can share a frame, and their excess portions are considered separately after the rendering adjustment.
Original worked example. Durations 70, 65 and 30 ms plus 20 ms render yield adjusted 90, 65 and 30. The identifiers, timestamps and observations are explicit so the reader can reconstruct the decision instead of trusting a label.
Changed-context transfer. Merge the first two into 135 ms. Total blocking changes because one allowance replaces two. State what changed, predict the consequence and revise only the conclusion that depended on that condition.
Practical evidence check. Archive scheduling boundaries. If this check fails, mark the claim unavailable and repair the method before continuing.
Use a positive case, a clean negative case and an unavailable case. Unavailable evidence is not zero.
Before closing, reconcile the worked example against the chapter rule: identify the eligible evidence, recompute the result, test the changed condition, and mark the first unsupported inference. Preserve the original inputs beside the revised conclusion so another reader can tell what changed. End the chapter with three sentences: what the evidence establishes, what it does not establish and what observation or calculation would change the conclusion. This keeps the lesson useful when the browser state, observation window or implementation context changes. A strong record also names the datum, denominator, section or coordinate system that governed the decision, so a later reader can repeat the reasoning without importing an unstated shortcut.
Previous chapter · Contents · Next chapter
9. Handle one task across visual consequences
A long task can delay a later rendering update even when it did not begin as animation work.
Original worked example. A data parse blocks the main thread before a visual update. LoAF still exposes the blocked frame. The identifiers, timestamps and observations are explicit so the reader can reconstruct the decision instead of trusting a label.
Changed-context transfer. Run the parse in a worker. Main-thread frame blocking falls while total computation remains. State what changed, predict the consequence and revise only the conclusion that depended on that condition.
Practical evidence check. Separate thread, task and render evidence. If this check fails, mark the claim unavailable and repair the method before continuing.
Repeat the reasoning after changing one consequential premise while holding every other field fixed.
Before closing, reconcile the worked example against the chapter rule: identify the eligible evidence, recompute the result, test the changed condition, and mark the first unsupported inference. Preserve the original inputs beside the revised conclusion so another reader can tell what changed. End the chapter with three sentences: what the evidence establishes, what it does not establish and what observation or calculation would change the conclusion. This keeps the lesson useful when the browser state, observation window or implementation context changes. A strong record also names the datum, denominator, section or coordinate system that governed the decision, so a later reader can repeat the reasoning without importing an unstated shortcut.
Previous chapter · Contents · Next chapter
10. Compare laboratory and field traces
TBT normally comes from a controlled Lighthouse run; LoAF can be observed in real sessions where device and behaviour vary.
Original worked example. Lab TBT is 180 ms, while field LoAF entries show a 260 ms blocking frame during an optional editor action. The identifiers, timestamps and observations are explicit so the reader can reconstruct the decision instead of trusting a label.
Changed-context transfer. Add that action to the lab script. The diagnosis converges but populations remain different. State what changed, predict the consequence and revise only the conclusion that depended on that condition.
Practical evidence check. Label environment and user path. If this check fails, mark the claim unavailable and repair the method before continuing.
Carry one plausible alternative through the ledger and choose the next observation that separates it from the leading account.
Before closing, reconcile the worked example against the chapter rule: identify the eligible evidence, recompute the result, test the changed condition, and mark the first unsupported inference. Preserve the original inputs beside the revised conclusion so another reader can tell what changed. End the chapter with three sentences: what the evidence establishes, what it does not establish and what observation or calculation would change the conclusion. This keeps the lesson useful when the browser state, observation window or implementation context changes. A strong record also names the datum, denominator, section or coordinate system that governed the decision, so a later reader can repeat the reasoning without importing an unstated shortcut.
Previous chapter · Contents · Next chapter
11. Use script attribution cautiously
LoAF script records help locate work, but attribution and cross-origin detail can be constrained.
Original worked example. A same-origin bundle exposes source information; a third-party script record has limited detail. The identifiers, timestamps and observations are explicit so the reader can reconstruct the decision instead of trusting a label.
Changed-context transfer. Self-host the script for a controlled test. More attribution appears without proving ownership of every delay. State what changed, predict the consequence and revise only the conclusion that depended on that condition.
Practical evidence check. Record origin and attribution availability. If this check fails, mark the claim unavailable and repair the method before continuing.
Write the expected result before checking the outcome, then preserve conflicts instead of smoothing them away.
Before closing, reconcile the worked example against the chapter rule: identify the eligible evidence, recompute the result, test the changed condition, and mark the first unsupported inference. Preserve the original inputs beside the revised conclusion so another reader can tell what changed. End the chapter with three sentences: what the evidence establishes, what it does not establish and what observation or calculation would change the conclusion. This keeps the lesson useful when the browser state, observation window or implementation context changes. A strong record also names the datum, denominator, section or coordinate system that governed the decision, so a later reader can repeat the reasoning without importing an unstated shortcut.
Previous chapter · Contents · Next chapter
12. Relate blocking to input evidence
Blocking potential can delay input, but neither TBT nor a LoAF entry is itself an observed INP value.
Original worked example. A 200 ms frame occurs with no user input; it represents risk, not a measured interaction delay. The identifiers, timestamps and observations are explicit so the reader can reconstruct the decision instead of trusting a label.
Changed-context transfer. Place a click during the frame. Event Timing now records the experienced latency. State what changed, predict the consequence and revise only the conclusion that depended on that condition.
Practical evidence check. Join traces by time without merging metrics. If this check fails, mark the claim unavailable and repair the method before continuing.
Archive exact sources, versions, calculations and receipts so another reader can reproduce the conclusion.
Before closing, reconcile the worked example against the chapter rule: identify the eligible evidence, recompute the result, test the changed condition, and mark the first unsupported inference. Preserve the original inputs beside the revised conclusion so another reader can tell what changed. End the chapter with three sentences: what the evidence establishes, what it does not establish and what observation or calculation would change the conclusion. This keeps the lesson useful when the browser state, observation window or implementation context changes. A strong record also names the datum, denominator, section or coordinate system that governed the decision, so a later reader can repeat the reasoning without importing an unstated shortcut.
Previous chapter · Contents · Next chapter
13. Diagnose style and layout
LoAF exposes renderStart and styleAndLayoutStart so script and rendering costs can be separated.
Original worked example. Script ends quickly, but style and layout consume 90 ms before paint. The identifiers, timestamps and observations are explicit so the reader can reconstruct the decision instead of trusting a label.
Changed-context transfer. Reduce DOM invalidation. Frame duration falls while earlier task duration stays. State what changed, predict the consequence and revise only the conclusion that depended on that condition.
Practical evidence check. Preserve phase timestamps. If this check fails, mark the claim unavailable and repair the method before continuing.
Keep raw observations, lifecycle boundaries, calculations and conclusions separate so the first unsupported inference remains visible.
Before closing, reconcile the worked example against the chapter rule: identify the eligible evidence, recompute the result, test the changed condition, and mark the first unsupported inference. Preserve the original inputs beside the revised conclusion so another reader can tell what changed. End the chapter with three sentences: what the evidence establishes, what it does not establish and what observation or calculation would change the conclusion. This keeps the lesson useful when the browser state, observation window or implementation context changes. A strong record also names the datum, denominator, section or coordinate system that governed the decision, so a later reader can repeat the reasoning without importing an unstated shortcut.
Previous chapter · Contents · Next chapter
14. Solve a changed frame ledger
Vary task splitting, frame assignment, render duration and measurement window one at a time.
Original worked example. Four cases share 220 ms total work but produce different per-frame blocking and TBT scope. The identifiers, timestamps and observations are explicit so the reader can reconstruct the decision instead of trusting a label.
Changed-context transfer. Hide results and recompute each ledger. State what changed, predict the consequence and revise only the conclusion that depended on that condition.
Practical evidence check. Require formula, object and observation window. If this check fails, mark the claim unavailable and repair the method before continuing.
Use a positive case, a clean negative case and an unavailable case. Unavailable evidence is not zero.
Before closing, reconcile the worked example against the chapter rule: identify the eligible evidence, recompute the result, test the changed condition, and mark the first unsupported inference. Preserve the original inputs beside the revised conclusion so another reader can tell what changed. End the chapter with three sentences: what the evidence establishes, what it does not establish and what observation or calculation would change the conclusion. This keeps the lesson useful when the browser state, observation window or implementation context changes. A strong record also names the datum, denominator, section or coordinate system that governed the decision, so a later reader can repeat the reasoning without importing an unstated shortcut.
Previous chapter · Contents · Next chapter
15. Repair blocking shortcuts
TBT is not LoAF blockingDuration, frame duration is not blocking duration, and lower blocking does not automatically prove a fast interaction.
Original worked example. A report adds frame durations and labels the sum TBT. Repair returns to task excess in the Lighthouse window. The identifiers, timestamps and observations are explicit so the reader can reconstruct the decision instead of trusting a label.
Changed-context transfer. Add rendering cost to the correct LoAF frame only. State what changed, predict the consequence and revise only the conclusion that depended on that condition.
Practical evidence check. Audit each number by source API. If this check fails, mark the claim unavailable and repair the method before continuing.
Repeat the reasoning after changing one consequential premise while holding every other field fixed.
Before closing, reconcile the worked example against the chapter rule: identify the eligible evidence, recompute the result, test the changed condition, and mark the first unsupported inference. Preserve the original inputs beside the revised conclusion so another reader can tell what changed. End the chapter with three sentences: what the evidence establishes, what it does not establish and what observation or calculation would change the conclusion. This keeps the lesson useful when the browser state, observation window or implementation context changes. A strong record also names the datum, denominator, section or coordinate system that governed the decision, so a later reader can repeat the reasoning without importing an unstated shortcut.
Previous chapter · Contents · Next chapter
16. State limits and misconceptions
These metrics focus on main-thread blocking and do not certify network speed, correctness, accessibility or visual quality.
Original worked example. A page has low blocking but an inaccessible control. The timing result cannot repair semantics. The identifiers, timestamps and observations are explicit so the reader can reconstruct the decision instead of trusting a label.
Changed-context transfer. Fix keyboard and name behaviour separately. State what changed, predict the consequence and revise only the conclusion that depended on that condition.
Practical evidence check. Name evidence outside scope. If this check fails, mark the claim unavailable and repair the method before continuing.
Carry one plausible alternative through the ledger and choose the next observation that separates it from the leading account.
Before closing, reconcile the worked example against the chapter rule: identify the eligible evidence, recompute the result, test the changed condition, and mark the first unsupported inference. Preserve the original inputs beside the revised conclusion so another reader can tell what changed. End the chapter with three sentences: what the evidence establishes, what it does not establish and what observation or calculation would change the conclusion. This keeps the lesson useful when the browser state, observation window or implementation context changes. A strong record also names the datum, denominator, section or coordinate system that governed the decision, so a later reader can repeat the reasoning without importing an unstated shortcut.
Previous chapter · Contents · Next chapter
17. Write a reproducible blocking record
A reviewer should reconstruct both formulas from task and frame evidence.
Original worked example. Record B12 stores Lighthouse version, trace window, task list, LoAF entries, render phases and calculations. The identifiers, timestamps and observations are explicit so the reader can reconstruct the decision instead of trusting a label.
Changed-context transfer. A browser update changes entry exposure. Append B13 with versioned results. State what changed, predict the consequence and revise only the conclusion that depended on that condition.
Practical evidence check. Archive raw traces and analysis. If this check fails, mark the claim unavailable and repair the method before continuing.
Write the expected result before checking the outcome, then preserve conflicts instead of smoothing them away.
Before closing, reconcile the worked example against the chapter rule: identify the eligible evidence, recompute the result, test the changed condition, and mark the first unsupported inference. Preserve the original inputs beside the revised conclusion so another reader can tell what changed. End the chapter with three sentences: what the evidence establishes, what it does not establish and what observation or calculation would change the conclusion. This keeps the lesson useful when the browser state, observation window or implementation context changes. A strong record also names the datum, denominator, section or coordinate system that governed the decision, so a later reader can repeat the reasoning without importing an unstated shortcut.
Previous chapter · Contents · Next chapter
18. Use authoritative sources and continue the route
The W3C draft defines LoAF records; Lighthouse documentation defines TBT. Companion lessons cover animation clocks, field evidence and interaction timing.
Original worked example. Read them as connected observations rather than synonyms. The identifiers, timestamps and observations are explicit so the reader can reconstruct the decision instead of trusting a label.
Changed-context transfer. Draft APIs may change, so retain specification date and support limits. State what changed, predict the consequence and revise only the conclusion that depended on that condition.
Practical evidence check. Save exact source URLs and tested browser versions. If this check fails, mark the claim unavailable and repair the method before continuing.
Archive exact sources, versions, calculations and receipts so another reader can reproduce the conclusion.
Before closing, reconcile the worked example against the chapter rule: identify the eligible evidence, recompute the result, test the changed condition, and mark the first unsupported inference. Preserve the original inputs beside the revised conclusion so another reader can tell what changed. End the chapter with three sentences: what the evidence establishes, what it does not establish and what observation or calculation would change the conclusion. This keeps the lesson useful when the browser state, observation window or implementation context changes. A strong record also names the datum, denominator, section or coordinate system that governed the decision, so a later reader can repeat the reasoning without importing an unstated shortcut.
Grouped reading routes
Core route
Companion lessons
- Separating First Input Delay from Interaction to Next Paint
- Distinguishing a History Traversal from a Back-Forward Cache Restoration
- Separating Speculation-Rule Prefetch from Prerender Activation
Related specialist lessons
Sources and further study
W3C Long Animation Frames API. Used for the standard definitions, material mechanisms or method limits developed in this lesson.
Chrome Lighthouse Total Blocking Time. Used for the standard definitions, material mechanisms or method limits developed in this lesson.
The worked examples and transfer checks are developed here and state their own assumptions. The linked sources support the underlying browser lifecycle, timing and measurement principles.
Return to contents · Return to The Gold Standard of Websites
