0.1.4 • Published 5 years ago

@lourd/load-script v0.1.4

Weekly downloads
35
License
MIT
Repository
github
Last release
5 years ago

@lourd/load-script npm package badge Build status

This single-function JavaScript module is a simple, no-frills way to add script tags to a browser document asynchronously.

Installation

npm

yarn install @lourd/load-script

In the browser

Available as a simple <script> through unpkg.com. The function will be available as the global variable loadScript.

API

loadScript(url: String) : Promise<void>

Support

Bring your own Promise polyfill if you need to support browsers that do not have a native Promise implementation.

Does not support Internet Explorer.