This single-function JavaScript module is a simple, no-frills way to add script tags to a browser document asynchronously.
yarn install @lourd/load-script
Available as a simple <script>
through unpkg.com. The function will be available as the global variable loadScript
.
Bring your own Promise polyfill if you need to support browsers that do not have a native Promise implementation.
Does not support Internet Explorer.