diff --git a/src/renderers/chrome/index.js b/src/renderers/chrome/index.js index 9ee03f3..3939565 100644 --- a/src/renderers/chrome/index.js +++ b/src/renderers/chrome/index.js @@ -134,6 +134,12 @@ export class ChromeRenderer extends Renderer { delete options.emulateMedia; } + await page._chromePage.waitForNavigation({ + waitUntil: 'networkidle', + networkIdleInflight: 0, + timeout: 0 + }); + buffer = await page._chromePage.pdf(options); break; default: