Tiny Style loader
npm install tiny-style-loaderThe purpose of this library is to be the smallest callback & Promise -based style loader.
If you're looking for a script loader, check out Tiny Script Loader
Callback
``js
var loadStyle = require('tiny-style-loader/loadStyle')
loadStyle('https://example.com/style.css', function () {
console.log('loaded')
})
`
Promise
`js
var loadStyle = require('tiny-style-loader/loadStylePromised')
loadStyle('https://example.com/style.css')
.then(function () {
console.log('loaded')
})
``