4 ms·
One quick tip if you're torn between SlimerJS and PhantomJS. Use http://casperjs.org http://casperjs.org scripts, and then choose the best engine at runtime.
by mootothemax 12y ago
One quick tip if you're torn between SlimerJS and PhantomJS.
Use http://casperjs.org 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.
- deleted 12y ago[deleted]
- jaredmcdonald 12y agoQuick nit: you can take screenshots with PhantomJS [0], exposed in casperjs as `capture` [1] [0] http://phantomjs.org/screen-capture.html http://phantomjs.org/screen-capture.html [1] http://docs.casperjs.org/en/latest/modules/casper.html#capture http://docs.casperjs.org/en/latest/modules/casper.html#captu...
- mootothemax 12y agoQuick 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.
- backwardm 12y agoJust FYI, I found a script (typekit.js) that allowed me to get PhantomJS to render TypeKit fonts nicely: https://github.com/bramstein/phantomjs-typekit https://github.com/bramstein/phantomjs-typekit
- tdumitrescu 12y agoLooks 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 https://github.com/ariya/phantomjs/issues/10592
- cburgmer 12y agoOne 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