Skip to content

hughsk/script-load

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

script-load experimental

browser support

Given a URL, asynchronously load a script in the browser.

Usage

script-load

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.

About

Given a URL, asynchronously load a script in the browser.

Resources

License

Stars

Watchers

Forks

Packages

No packages published