UNPKG

only.js

Version:

Automatically load and execute selector-based dependencies

20 lines (12 loc) 876 B
# Only.js Selector-based Loader Only.js is a dynamic selector-based script loader that not only replaces the use of multiple `<script>` tags and initialization code but also with a fast, parallel, speed-optimized API. Some script loaders tend to do a lot of things; from loading scripts, to loading css, to feature detection, to loading iframes, images, maybe even solar systems &mdash; eventually. The major characteristic of Only.js is not the ability to load all Javascript files in parallel with cross-browser execution order but the ability to dynamically determine and load Javascript needed by the current page without blocking other assets/resources. > **Built on:** [LABjs](http://labjs.com/). ## Documentation [Online Docs & Demo](http://ema4rl.github.io/Only.js) ## Contributions and bug fixes They are very much appreciated - especially bug fixes. Thanks!