Just another simple scripts loader
This is a simple javascript files loader that brings power of promises to us.
This package is base on ES6 Promise. See es6-promise-polyfill
for browser support.
npm install RainLoop/jassl --save
var jassl = require('jassl');
jassl('jquery.min.js').then(() => {
$('#app').show();
});
or
var jassl = require('jassl');
Promise.all([
jassl('jquery.min.js'),
jassl('common.min.js')
]).then(() => {
return jassl('app.min.js');
}).then(() => {
var app = new App();
app.bootstrap();
});
src
{String}
async
{Boolean}
default:true
- return:
{Promise}
jassl
is licensed under the MIT License.