getscript
async js loader for browsers.
getscript('/example.js', function (err, res) {
if (err) throw err; // throws URIError
res.uri; // example.js
res.event; // onload event
});
license
mit
async js loader for browsers.
getscript('/example.js', function (err, res) {
if (err) throw err; // throws URIError
res.uri; // example.js
res.event; // onload event
});
mit
npm i @koding/getscript
5
0.1.0
MIT