ukwa / webrender-puppeteer

Web page rendering service based on Google's Puppeteer
2 stars 3 forks source link

Add 'fast' mode, for quicker generation of screenshots for access/social cards #19

Closed anjackson closed 2 years ago

anjackson commented 2 years ago

The current renderer still always executes the scrolling and other operations required a crawl time in order to make sure we pick up additional resources. The access-time screenshotter does not need this, and can just use an immediate viewport screenshot. This will speed up the screenshot API and make it more useful for Twitter cards etc.

Note also that current implementation hangs at

https://github.com/ukwa/webrender-puppeteer/blob/425280472365ec150eb7ec57f68496d5c40a303e/renderer.js#L343

when NOT running behind WARCPROX because it's waiting for nothing to finish happening! So PDF mode should be off in this case.

anjackson commented 2 years ago

Added a RUN_BEHAVIOURS option: setting this to false switches off the button pressing and downward scrolling.