script-load
v0.1.0
Published
Given a URL, asynchronously load a script in the browser.
Downloads
72
Maintainers
Readme
script-load
Given a URL, asynchronously load a script in the browser.
Usage
require('script-load')(url[, callback])
Loads and runs url
, calling callback(err, script)
when complete: err
is
an error if something went wrong, and script
is the script element created
that has been loaded onto the page.
License
MIT. See LICENSE.md for details.