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')
})
injects a link tag to dynamically load css
<script type="module">
import loadsCss from 'https://cdn.skypack.dev/loads-css';
</script>
loads css by injecting a link tag
npm i loads-css
var css = require('loads-css')
css('index.css', function() {
console.log('css has been loaded')
})