Load style as promise.
npm install load-style-p --save
import loadStyle from 'load-style-p';
loadStyle('http://example.com/jackie.css')
.then(()=> {
// ...
});
Returns: Promise
Loads stylesheet from URL.
Type: String
Stylesheet URL.
Tested in IE9+ and all modern browsers. Promise
should be available globally.
For automated tests, run npm run test:automated
(append :watch
for watcher support).
MIT © Ivan Nikolić