Since SlimerJS is executed on top of Firefox, it supports all the HTML5 and CSS standards recently implemented in Firefox.
In fact, SlimerJS is not really stuck to a specific version of Gecko: it can use any recent version of Firefox 52+.
The web page rendering in SlimerJS is strictly identical to the rendering in Firefox.
No problem to launch your web site or your web app that use HTML5 bleeding edge features!
See the download page to know the version of Firefox compatible with the latest release of SlimerJS.
You can go on caniuse.com to see the list of HTML5 features supported by Firefox and you can use in web pages loaded by SlimerJS.
Try SlimerJS for your web projects!
APIs of SlimerJS are similar to the APIs of PhantomJS but there are a few differences in their behavior. Some options and a few features are still missing. Feel free to help us to have a full compatibility (see release notes to have the list of missing features).
However, most of scripts for PhantomJS run perfectly well with SlimerJS right now!
SlimerJS provides some enhancements in the API. For example you can use Promises
when opening a web page with
Contrary to PhantomJS, SlimerJS is not headless by default: you see windows
and it then needs a graphical environment. Except if you are using
Firefox 56+, by adding an
--headless flag, or for
older version of Firefox on linux, you can use a tool like
xvfb to have this headless
feature and to execute SlimerJS on Linux boxes that do not have xorg
installed. See the documentation about the headless mode.