question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Increasing pauseAfterLoadMs also increases Total Blocking Time

See original GitHub issue

FAQ

URL

Locally

What happened?

When increasing the pauseAfterLoadMs to 5000 the Total Blocking Time (TBT) increased to 1237ms, which decreased its score to 11%.

module.exports = {
  extends: "lighthouse:default",

  passes: [
    {
      passName: 'defaultPass',
      /** The number of milliseconds to wait after the load event until the page should be considered loaded. */
      pauseAfterLoadMs: 5000,
      gatherers: []
    },
  ],

What did you expect?

TBT should not have been affected by pauseAfterLoadMs

What have you tried?

I played around with the values of pauseAfterLoadMs; the more I increased them the more the TBT score decreased.

How were you running Lighthouse?

node

Lighthouse Version

6.0

Chrome Version

No response

Node Version

No response

OS

No response

Relevant log output

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
connorjclarkcommented, Apr 11, 2022

Instead of configuring pauseAfterLoadMs to maybe capture a later part of the page, I suggest you try our new user flow api and wait for your widget to appear before ending your timespan.

Perhaps because you’ve now captured this widget loading, the increased TBT is really a signal that the widget had a lot of blocking code associated with it?

https://github.com/GoogleChrome/lighthouse/blob/master/docs/user-flows.md

0reactions
bakiasibcommented, Apr 7, 2022

@connorjclark yes I have a widget that starts during page load. Lighthouse was not waiting long enough for it to load and I wanted to calculate its size so that is why I increased the pauseAfterLoadMs. However the site is interactive even if the widget has not loaded yet, so I would think it wouldn’t cause the scores of TBT or Time To Interactive, and First CPU Idle to drop

Read more comments on GitHub >

github_iconTop Results From Across the Web

Total Blocking Time (TBT) - web.dev
This post introduces the Total Blocking Time (TBT) metric and explains how to measure it.
Read more >
Total Blocking Time (TBT): Optimization and Guideline
Total Blocking Time measures the total time that the browser's main thread is blocked by tasks longer than 50 ms. If TBT is...
Read more >
How to Reduce Total Blocking Time (TBT) on WordPress
Wondering what Total Blocking Time is and how to reduce it on your WordPress site? You'll find the information you need in the...
Read more >
Total Blocking Time - Chrome Developers
TBT measures the total amount of time that a page is blocked from responding to user input, such as mouse clicks, screen taps,...
Read more >
Lighthouse: Total Blocking Time - GTmetrix
As a Web Vital metric, TBT accounts for 30% of the Performance Score, making it the top metric to optimize. This highlights our...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found