mixu / electroshot

Capture website screenshots with optional device and network emulation as jpg, png or pdf (with web fonts!) using Electron / Chrome.
548 stars 34 forks source link

Some way to know when page is fully loaded #5

Open pholmstr opened 8 years ago

pholmstr commented 8 years ago

Would it be possible to add a trigger for when the page is fully loaded? Such as a javascript statement which would evaluate true once page is loaded, and then execute rendering?

I currently use phantomjs for screenshots and it has the "waitFor" call:

https://github.com/ariya/phantomjs/blob/master/examples/waitfor.js

mixu commented 8 years ago

I'd be happy to accept a PR for this!