fetch-script

Async loading of scripts using the Fetch API

Usage no npm install needed!

<script type="module">
  import fetchScript from 'https://cdn.skypack.dev/fetch-script';
</script>

README

Fetch Script

Dynamically loads scripts using the Fetch API and then injects the script into the document head.

CircleCI

Based on fetch-inject.