Skip to content

Conversation

@fabrik42
Copy link
Owner

I'm thinking about switching the headless browser lib from PhantomJS to Nightmare.

There are some Pros and Cons:

Pro:

  • Nightmare uses Electron, which has much better support for new browser features, e.g. WebGL (we could render screenshots in much more interesting ways).
  • PhantomJS still is buggy sometimes, e.g. when setting the viewport.
  • I've never encountered any SSL Problems with Nightmare, with PhantomJS very often (see readme).
  • I hope for better cross platform compatibility.

Con:

  • More dependencies, need to do an npm install
  • Nightmare docs are as bad as the PhantomJS docs. :( (got help in the GH issues)
  • Still need to figure out, how to make better use of the ES generators feature in this project.

Feedback is very welcome!

Best,

Christian

now we don't to call it with the harmony flag anymore.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants