5 ms·
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 spo
by corford 10y ago
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).
- kozhevnikov 10y agoOne 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.
- vaviloff 10y agoVery interesting comparison! Could you write a note on your experience somewhere?
- vor0nwe 10y agoI'm actually hoping CasperJS will support headless Chrome, and headless Firefox later on too.
- Jimmed 10y agoA 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.
- chrisber 10y agoIf you need a real good alternative checkout https://github.com/arachnys/athenapdf https://github.com/arachnys/athenapdf it's based on electron.
- corford 10y agoLooks very nice but I'm not using Slimer for PDF stuff.