url-to-pdf-api icon indicating copy to clipboard operation
url-to-pdf-api copied to clipboard

scrollPage bug

Open zhuang-hao-ming opened this issue 8 years ago • 2 comments

There are some websites such as example using a special lazy loading strategy.

When users scroll quickly(<300ms) they do not load image. Just when users stop to look at the content they load image.

So, I think that we need another option (scrollInterval) to let user to test and decide the interval.

releated discussions:

https://github.com/GoogleChrome/puppeteer/issues/338#issuecomment-333301117

Thanks!

zhuang-hao-ming avatar Jan 02 '18 16:01 zhuang-hao-ming

Good feedback. I'm open for a PR to implement this.

kimmobrunfeldt avatar Aug 05 '18 09:08 kimmobrunfeldt

Simply we can use : await page.goto('URL', { waitUntil: 'networkidle0' }); this will wait until the complete page is loaded.

sreejithpc avatar Nov 29 '19 05:11 sreejithpc