kevva / screenshot-stream

Capture screenshot of a website and return it as a stream
MIT License
236 stars 38 forks source link

Persistent PhantomJS #28

Open mbrevda opened 8 years ago

mbrevda commented 8 years ago

Is there any way to keep phantom running between screenshots? I would imagine this would cut down on the amount of time it takes to generate a screenshot

sindresorhus commented 8 years ago

Not currently, but that's a good feature request. A good pull request would be merged, but neither I or @kevva have time to implement this.

mbrevda commented 8 years ago

Technically speaking, how do you suppose this would work?

ColemanGariety commented 8 years ago

@sindresorhus I'm also pretty interested in this and willing to write/document a pull request. @mbrevda what did you find out? Did you try to implement this yourself? did you encounter difficulties?

thanks.

Kikobeats commented 7 years ago

Related with that, a good step for speedup the process is keep a pool of phantom instances: https://github.com/binded/phantom-pool