Negating Past Mistakes

    load-script-p

    1.0.0 • Public • Published

    load-script-p

    Build Status BrowserStack Status

    Load script as promise.

    Install

    npm install load-script-p --save

    Usage

    import loadScript from 'load-script-p';
     
    loadScript('http://example.com/jackie.js')
        .then(()=> {
            // ...
        });

    API

    loadScript(src)

    Returns: Promise

    Loads script from URL.

    src

    Type: String

    Script URL.

    Browser support

    Tested in IE9+ and all modern browsers.

    Test

    For local automated tests, run npm run test:automated:local (append :watch for watcher support).

    License

    MIT © Ivan Nikolić

    Install

    npm i load-script-p

    DownloadsWeekly Downloads

    453

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    5.27 kB

    Total Files

    5

    Last publish

    Collaborators

    • niksy