Skip to content

Commit

Permalink
fix: prefer awaiting networkidle2 on inspecting HTML
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Jun 4, 2024
1 parent 3d471bf commit 643071b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/puppeteer/tasks/html.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const extractHtmlPayload: (page: Page, route: string) => Promise<{ succes

await setupPage(page)

const pageVisit = await page.goto(route, { waitUntil: resolvedConfig.scanner.skipJavascript ? 'domcontentloaded' : 'networkidle0' })
const pageVisit = await page.goto(route, { waitUntil: resolvedConfig.scanner.skipJavascript ? 'domcontentloaded' : 'networkidle2' })
if (!pageVisit)
return { success: false, message: `Failed to go to route ${route}.` }

Expand Down

0 comments on commit 643071b

Please sign in to comment.