This repository has been archived by the owner on Apr 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(puppeteer): Wait until networkidle2 for better dev server support (…
…#63) Switches to networkidle2 during Puppeteer navigation, preventing timeouts when requesting pages that are served from development environments like webpack-dev-server (which holds open event- source sockets for HMR). The networkidle2 event is fired when there are no more than 2 network connections for at least 500 ms. If the page you're requesting has 2 or fewer resources that stall for longer than 500ms and doesn't complete loading, you can switch back to networkidle0 using the new `--puppeteer-wait-until` option.
- Loading branch information
1 parent
ed60b44
commit 17f9663
Showing
2 changed files
with
19 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters