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.

Lighthouse CLI hangs on certain websites

See original GitHub issue
~ $ lighthouse http://nba.com
  ChromeLauncher Waiting for browser. +0ms
  ChromeLauncher Waiting for browser... +0ms
  ChromeLauncher Waiting for browser..... +609ms
  ChromeLauncher Waiting for browser.....✓ +2ms
  Lighthouse:warn The URL provided should be on HTTPS +436ms
  Lighthouse:warn Performance stats will be skewed redirecting from HTTP to HTTPS. +1ms
  status Initializing… +420ms
  status Loading page & waiting for onload URL, Viewport, ViewportDimensions, ThemeColor, Manifest, RuntimeExceptions, ChromeConsoleMessages, ImageUsage, Accessibility, EventListeners, AnchorsWithNoRelNoopener, AppCacheManifest, DOMStats, JSLibraries, OptimizedImages, PasswordInputsWithPreventedPaste, ResponseCompression, TagsBlockingFirstPaint, WebSQL, MetaDescription, CrawlableLinks, MetaRobots +355ms
  Driver:warn Timed out waiting for page load. Moving on... +45s
  statusEnd Loading page & waiting for onload +2ms
  status Retrieving trace +1ms
  status Retrieving devtoolsLog and network records +9s

Hangs here: Imgur

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10

github_iconTop GitHub Comments

2reactions
patrickhulcecommented, Jun 14, 2018

You can use the --max-wait-for-load=10000 to only wait 10s for example

0reactions
patrickhulcecommented, Aug 26, 2021

https://github.com/GoogleChrome/lighthouse/blob/c7931ffe721fc4d44e4b5943f785a1c885df22ba/lighthouse-core/gather/driver/wait-for-condition.js#L437-L443

I wanted to stop loading if full load of page wasn’t succed in 1 minute for example. I thought that in that case I should set here --max-wait-for-load=60000

Yes, that’s exactly what you’d want to do. Note that this just moves on after checking if the page is hung and adds a warning, it won’t abort the Lighthouse run.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Investigating Lighthouse Report Generation Errors - GTmetrix
As mentioned in our Lighthouse Errors article, the browser crashing is typically caused by excess size and/or complexity in the page's CSS or ......
Read more >
1252014 - Lighthouse consistently hangs forever on some sites
Lighthouse hangs forever because `undefined` was passed in as the inspected URL. It does not happen on every site, for example https://example.com behaves ......
Read more >
lighthouse - npm
Lighthouse analyzes web apps and web pages, collecting modern performance metrics and insights on developer best practices. Using Lighthouse.
Read more >
lighthouse | Yarn - Package Manager
Automated auditing, performance metrics, and best practices for the web. google, chrome, devtools. readme. changelog. 9.6.8 (2022-10 ...
Read more >
Lighthouse - GitHub Pages
Lighthouse analyzes web apps and web pages, collecting modern performance ... The Node CLI provides the most flexibility in how Lighthouse runs can...
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