mirror of
https://github.com/docsifyjs/docsify.git
synced 2026-10-25 01:15:50 +08:00
Wait for network idle for more reliable ready state
This commit is contained in:
@@ -120,6 +120,9 @@ async function docsifyInit(options) {
|
||||
await page.waitForSelector(settings.waitForSelector);
|
||||
}
|
||||
|
||||
// Wait for all network requests to complete
|
||||
await page.waitForLoadState('networkidle');
|
||||
|
||||
// Debug
|
||||
if (settings.debug) {
|
||||
await jestPlaywright.debug();
|
||||
|
||||
Reference in New Issue
Block a user