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:

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:

  1. Data attribute test.
  2. Dependency loading.
  3. Dependency chaining.
  4. Depenency via data attribute.
  5. Custom script attributes.
  6. HTMLElement no-js to js class re-write.
  7. Multiple dependency chaining (a).
  8. Multiple dependency chaining (b).
  9. Multiple dependency chaining with (a) .end().
  10. Multiple dependency chaining with (b) .sandbox().
  11. Automatic polyfill loading.
  12. Cross-browser DOMContentLoaded test