Skip to content

Measure Total Blocking Time per soft navigation - #2586

Merged
soulgalore merged 3 commits into
mainfrom
soft-nav-long-tasks
Oct 26, 2026
Merged

soulgalore merged 3 commits into
mainfrom
soft-nav-long-tasks

Conversation

@soulgalore

Copy link
Copy Markdown
Member

On a soft navigation the document stays the same, so the long task buffer still holds the work of every earlier route. Total Blocking Time grew with every step of a user journey: four routes doing the same 200 ms of blocking work reported 451, 651, 851 and 1051 ms. Later pages then failed budgets because of earlier pages' work. FCP and LCP were already measured from the soft navigation start but the long tasks were not, so nearly every task counted.

Long tasks are now limited to the measured soft navigation, the same way CLS already is, and use the same start point as the paint metrics.

Fixes sitespeedio/sitespeed.io#4892

Assisted-by: Claude Opus 5.5 noreply@anthropic.com

On a soft navigation the document stays the same, so the long task buffer still holds the work of every earlier route. Total Blocking Time grew with every step of a user journey: four routes doing the same 200 ms of blocking work reported 451, 651, 851 and 1051 ms. Later pages then failed budgets because of earlier pages' work. FCP and LCP were already measured from the soft navigation start but the long tasks were not, so nearly every task counted.

Long tasks are now limited to the measured soft navigation, the same way CLS already is, and use the same start point as the paint metrics.

Fixes sitespeedio/sitespeed.io#4892

Assisted-by: Claude Opus 5.5 noreply@anthropic.com
@soulgalore
soulgalore merged commit 5b149e2 into main Oct 26, 2026
17 checks passed
@soulgalore
soulgalore deleted the soft-nav-long-tasks branch October 26, 2026 07:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Soft navigations: Total Blocking Time is document-cumulative, not per route

1 participant