Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why is the delay for TBT reporting 10 seconds, why not 5? #262

Open
SKNlEI opened this issue May 21, 2024 · 0 comments
Open

Why is the delay for TBT reporting 10 seconds, why not 5? #262

SKNlEI opened this issue May 21, 2024 · 0 comments

Comments

@SKNlEI
Copy link

SKNlEI commented May 21, 2024

// TODO Add docs
if ('FID' === name) {
setTimeout(() => {
if (visibility.didChange) {
return;
}
logMetric({
attribution,
name: 'TBT',
rating: getVitalsScore('TBT', tbt.value),
value: tbt.value,
navigationType,
});
logData('dataConsumption', rt.value);
}, 10000);
}

Is there any basis for this timing?

reference address:https://web.developers.google.cn/articles/tbt?hl=en
Total Blocking Time (TBT) is an important lab metric for measuring load responsiveness. It measures the total time after First Contentful Paint (FCP) where the main thread was blocked for long enough to prevent responses to user input. A low TBT helps ensure that the page is usable.

By default, Lighthouse stops monitoring TBT after Time to Interactive (TTI), as do some other lab tools that measure page load. For more information, see How does TBT relate to TTI?.

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

No branches or pull requests

1 participant