Open SKNlEI opened 4 months ago
// 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?.
// 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?.