xec
An async script loader, for the browser, built on Promises.
Pronounced "exec".
Install
npm i xec --save
API
xec exports a singleton, and won't load the same source twice.
It exposes the following API:
.one(source)
.many(sources)
const sources = 'path/one.js' 'path/two.js'
Browser Support
- Async script loading requires
async
attribute support. - Promises are required. If needed, polyfill them.
License
MIT. © 2017 Michael Cavalea