diff --git a/lazyimages_without_scroll_events.js b/lazyimages_without_scroll_events.js index cfc6858..c12f390 100755 --- a/lazyimages_without_scroll_events.js +++ b/lazyimages_without_scroll_events.js @@ -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. @@ -332,4 +333,4 @@ fs.writeFileSync(argv.output, await page.content(), {encoding: 'utf8'}); await page.close(); await browser.close(); -})(); \ No newline at end of file +})();