🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

load-script

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

load-script

Dynamic script loading for browser

Source
npmnpm
Version
0.0.3
Version published
Weekly downloads
2.1M
2.86%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

browser

FAQs

Package last updated on 28 Dec 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts