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:
Issue Analytics
- State:
- Created 6 years ago
- Comments:10
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You can use the
--max-wait-for-load=10000
to only wait 10s for examplehttps://github.com/GoogleChrome/lighthouse/blob/c7931ffe721fc4d44e4b5943f785a1c885df22ba/lighthouse-core/gather/driver/wait-for-condition.js#L437-L443
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.