max-wait-for-load not working
See original GitHub issueI tried adding details in https://github.com/GoogleChrome/lighthouse/issues/11615 but dependabot marked and closed it as a duplicate. The max-wait-for-load
flag doesn’t seem to be working unless I’m misunderstanding.
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
max-wait-for-load not working · Issue #11615 - GitHub
Run LH on lighthouse https://www.clifbar.com/clif/ --chrome-flags="--headless" --max-wait-for-load=30000 Actual Times out with the error ...
Read more >Lighthouse - Best of JS
This tool will aid in resolving discovered problems, providing a tool to be used to evaluate effectiveness of iterative changes while suggesting actionable ......
Read more >Using Lighthouse in Chrome DevTools - GitHub Pages
[default: localhost] --max-wait-for-load The timeout (in milliseconds) to wait before the page is considered done loading and the run should continue.
Read more >lighthouse - npm
--max-wait-for-load The timeout (in milliseconds) to wait before the page is ... daemon not running. starting it now on port 5037 *.
Read more >Lighthouse: proto/lighthouse-result.proto | Fossies
51 PROTOCOL_TIMEOUT = 17; 52 // Used when the page is not responding after maxWaitForLoad. 53 PAGE_HUNG = 18; 54 // DNS failure...
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
That won’t catch any hanging in the audit process once Chrome is out of the picture (which is why we recommend and provide examples of the child process model), but it should solve this specific PROTOCOL_TIMEOUT issue 👍
Thanks for sharing it with others @adamhenson 😃
For anyone who comes across this, I’m creating my own timeout programmatically with the following code. If someone sees something wrong with this, please let me know. The only caveat is that it masks the true problem (if a
PROTOCOL_TIMEOUT
would have occurred - you won’t know). This is needed for me because I run a gigantic queue of Lighthouse audits and I can’t have a single Lighthouse process hang for 10 minutes.The below code is a simplified version of what I’m doing and may not work exactly as is. Hope it helps others.