loads-css

injects a link tag to dynamically load css

Usage no npm install needed!

<script type="module">
  import loadsCss from 'https://cdn.skypack.dev/loads-css';
</script>

README

loads-css

loads css by injecting a link tag

install

npm i loads-css

usage

var css = require('loads-css')

css('index.css', function() {
  console.log('css has been loaded')
})