apex / capture

Lambda function to capture a URL as PNG, JPG, or GIF using PhantomJS
108 stars 5 forks source link

Ensure contents are loaded #3

Open mooyoul opened 8 years ago

mooyoul commented 8 years ago

Currently, PhantomJS wont wait for Content are loaded (e.g. DOMContentLoaded / Load / etc.)

It would be nice if we ensure contents are loaded :)

tj commented 8 years ago

Yeah for sure, not sure if phantom has a good mechanism for that ATM, but it would be nice to have. In lots of cases (SPAs etc) there isn't really a final loaded state, so you still need a timeout there