Skip to content

Commit

Permalink
First release of Only.js
Browse files Browse the repository at this point in the history
Improved on LABjs by adding:
-> conditional loading based on element availability
-> test multiple elements with AND-like condition (eg:
$O.test().test().js().wait())
-> test multiple elements with OR-like condition (eg: $O.test('this,
that').js().wait())
-> custom javascript attributes
-> leaner code (6.3kb minified, 2.9kb gzipped)
-> replaces .no-js with .js on html element
-> queue test via $O.queueTest()
-> end() to enable explicit end of test chain without breaking the chain
(unlike sandbox())
-> loading initial js (entry point js - like app.js) via data attribute
with data-only
-> adjusted absolute uri regex gotten from a LABjs issue
(getify/LABjs#98)
-> automatically load polyfill service (polyfill.io) via options
-> inject script tags at end of head tag opposed to LABjs inject at top
(getify/LABjs#115)
-> conditional script execution of inline scripts via $O.test().script()
-> add snippet in docs for lazy css since this library will not handle
that
-> support CommonJS (not tested)
  • Loading branch information
Ema4rl committed May 26, 2016
1 parent bcf8839 commit bb1ae20
Show file tree
Hide file tree
Showing 29 changed files with 2,723 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,15 @@ $RECYCLE.BIN/
# Windows shortcuts
*.lnk

# Custom folders
dump/
.idea
todo.txt
node_modules
search
src/requestCss.js


# =========================
# Operating System Files
# =========================
Expand Down
439 changes: 439 additions & 0 deletions dist/only-debug.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/only-debug.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit bb1ae20

Please sign in to comment.