screenshot-stream icon indicating copy to clipboard operation
screenshot-stream copied to clipboard

Persistent PhantomJS

Open mbrevda opened this issue 8 years ago • 4 comments

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

mbrevda avatar Mar 22 '16 11:03 mbrevda

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.

sindresorhus avatar Mar 22 '16 12:03 sindresorhus

Technically speaking, how do you suppose this would work?

mbrevda avatar Mar 23 '16 07:03 mbrevda

@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.

ColemanGariety avatar May 06 '16 23:05 ColemanGariety

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

Kikobeats avatar Jul 14 '17 10:07 Kikobeats