1.0.1 • Published 7 years ago
tiny-style-loader v1.0.1
Tiny Style Loader
The 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
Usage
Callback
var loadStyle = require('tiny-style-loader/loadStyle')
loadStyle('https://example.com/style.css', function () {
console.log('loaded')
})
Promise
var loadStyle = require('tiny-style-loader/loadStylePromised')
loadStyle('https://example.com/style.css')
.then(function () {
console.log('loaded')
})