Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lazyimages_without_scroll_events.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ async function screenshotPageWithoutScroll(url) {
// });
// });

page.setUserAgent('Googlebot/2.1 (+http://www.googlebot.com/bot.html)');
await page.goto(url, {waitUntil: 'networkidle2'});
await page.waitFor(WAIT_FOR); // Wait a bit more in case other things are loading.
// await waitForNetworkIdle(page, 'networkidle0'); // wait for network to be idle.
Expand Down Expand Up @@ -332,4 +333,4 @@ fs.writeFileSync(argv.output, await page.content(), {encoding: 'utf8'});
await page.close();
await browser.close();

})();
})();