News for hackers. Stuff that matters.
Re:PhantomJS: Stepping down as maintainer by corford on Thursday April 13, 2017 @07:42AM (#14105963)
And while people wait, you can already do a 'poor mans' headless Firefox thanks to SlimerJS and xvfb.

Phantomjs is less resource heavy if you're constantly spooling up and down lots of instances but I prefer SlimerJS w/ Firefox since it lets you keep up to date with a modern version of Firefox (rather than relying on sporadic QTWebkit updates from Phantomjs).

If you're using Casperjs, SlimerJS is virtually a drop in replacement for Phantomjs (though I worry about how long/well Casperjs will continue to be maintained).

Re:PhantomJS: Stepping down as maintainer by kozhevnikov on Thursday April 13, 2017 @08:05AM (#14106071)
One can use Xvfb to run normal Chrome as well (with few gotchas like --no-sandbox, --disable-gpu and dep on dbus-x11). A test I'm working on at the moment takes 28 seconds in PhantonJS and 6 in Chrome under Docker and Xvfb.
Re:PhantomJS: Stepping down as maintainer by vaviloff on Thursday April 13, 2017 @02:08PM (#14109450)
Very interesting comparison! Could you write a note on your experience somewhere?
Re:PhantomJS: Stepping down as maintainer by chrisber on Friday April 14, 2017 @01:54PM (#14115912)
If you need a real good alternative checkout https://github.com/arachnys/athenapdf it's based on electron.
Re:PhantomJS: Stepping down as maintainer by corford on Friday April 14, 2017 @08:29PM (#14118574)
Looks very nice but I'm not using Slimer for PDF stuff.
Re:PhantomJS: Stepping down as maintainer by Jimmed on Friday April 14, 2017 @04:55AM (#14113356)
A colleague and I spent a couple of days setting up high-fidelity webpage->PDF rendering, and by far the best results were got with SlimerJS and xvfb.
Re:PhantomJS: Stepping down as maintainer by vor0nwe on Thursday April 13, 2017 @12:38PM (#14108568)
I'm actually hoping CasperJS will support headless Chrome, and headless Firefox later on too.