0.0.2 • Published 7 years ago

loadcss v0.0.2

Weekly downloads
963
License
MIT
Repository
github
Last release
7 years ago

loadcss

npm version Build Status

Fast and reliable utility to asynchronously load multiple css files and apply to the document.

Installation

$ npm install loadcss

API

import loadcss from 'loadcss';

// load a single css file
loadcss('/foo.css', links => {
  links.forEach(link => console.log(link.href));
});

// load multiple css files
loadcss(['/a/foo.css', '/b/bar.css'], links => {
  links.forEach(link => console.log(link.href));
});

Running tests

$ npm install
$ npm test

License

MIT