News for hackers. Stuff that matters.
Re:SlimerJS – A scriptable browser for Web developers by mootothemax on Wednesday November 12, 2014 @07:26AM (#8595098)
One quick tip if you're torn between SlimerJS and PhantomJS.

Use http://casperjs.org scripts, and then choose the best engine at runtime.

For example, need screenshots? Tell CasperJS to use SlimerJS.

Looking for faster rendering to HTML? Tell CasperJS to use PhantomJS.

Re:SlimerJS – A scriptable browser for Web developers by jaredmcdonald on Wednesday November 12, 2014 @10:31AM (#8595854)
Quick nit: you can take screenshots with PhantomJS [0], exposed in casperjs as `capture` [1]

[0] http://phantomjs.org/screen-capture.html

[1] http://docs.casperjs.org/en/latest/modules/casper.html#captu...

Re:SlimerJS – A scriptable browser for Web developers by mootothemax on Wednesday November 12, 2014 @10:43AM (#8595959)
Quick nit: you can take screenshots with PhantomJS

Sorry, that's my fault for not going into more detail :)

The big issue I have with PhantomJ's screenshots is that it doesn't support web fonts, and so pages don't render correctly.

Re:SlimerJS – A scriptable browser for Web developers by backwardm on Wednesday November 12, 2014 @11:25AM (#8596321)
Just FYI, I found a script (typekit.js) that allowed me to get PhantomJS to render TypeKit fonts nicely: https://github.com/bramstein/phantomjs-typekit
Re:SlimerJS – A scriptable browser for Web developers by tdumitrescu on Wednesday November 12, 2014 @11:36AM (#8596397)
Looks like web fonts work out of the box in phantomjs 2.0 (not released yet, but nightly source and binaries available): https://github.com/ariya/phantomjs/issues/10592
Re:SlimerJS – A scriptable browser for Web developers by cburgmer on Wednesday November 12, 2014 @01:41PM (#8597310)
One quick tip if you're torn between SlimeJS and PhantomJS, do either of them or both at the same time, they expose the same* API.

* with minor changes, as documented with SlimerJS