Only.js Tests
Browser support
Since Only.js inherits from LABjs, we also inherit LABjs browser support, though you're advised to use our test suite and help fill in the gaps with a pull request on GitHub.
Browsers that were tested and passed the test suite are:
- Windows: IE 6+, FF 1.5+, Chromium browsers (Chrome, Torch, Maxthon, etc), Opera 9.6+, Safari 4+, Netscape 7.2+, Mozilla 1.7
- Mac (OSX): Safari 3.2+, Netscape 9, FF 1.5+, Opera 9.6+, Mozilla 1.7, Camino 2
- Linux: FF 1.5+, Opera 9.5+, Netscape 9
Known unsupported
Safari 2, Opera 8, Konquerer (3.4, 4.1), FF 4b7 (only this exact release. <= b6 and b8+ are ok), Blackberry 4
Test Suite
Below are the Only.js-specific tests:
- Data attribute test.
- Dependency loading.
- Dependency chaining.
- Depenency via data attribute.
- Custom script attributes.
- HTMLElement no-js to js class re-write.
- Multiple dependency chaining (a).
- Multiple dependency chaining (b).
- Multiple dependency chaining with (a) .end().
- Multiple dependency chaining with (b) .sandbox().
- Automatic polyfill loading.
- Cross-browser DOMContentLoaded test