diff --git a/lib/print.js b/lib/print.js index 85e5c11..df78427 100644 --- a/lib/print.js +++ b/lib/print.js @@ -38,7 +38,7 @@ export default async (initialUrl, print, printSize) => { const pdfOptions = { path: pdfFilename, printBackground: true }; Object.assign(pdfOptions, getPageOptions(printSize)); - await page.goto(`${initialUrl}?print-pdf`, { waitUntil: 'load' }); + await page.goto(`${initialUrl}?print-pdf`, { waitUntil: 'networkidle0' }); await page.pdf(pdfOptions); await browser.close(); } catch (err) {