load-script

Dynamic script loading for browser

npm install load-script
16 downloads in the last day
658 downloads in the last week
3 041 downloads in the last month

load-script

Dynamic script loading.

Installation

via component

$ component install eldargab/load-script

via npm

$ npm install load-script

API

var load = require('load-script')
load('foo.js', function (err) {
  if (err) {
    // print useful message
  else {
    // use script
    // note that in IE8 and below loading error wouldn't be reported
  }
})

License

MIT

npm loves you