Skip to content

Fast and reliable utility to asynchronously load multiple css files

License

Notifications You must be signed in to change notification settings

yefremov/loadcss

Repository files navigation

loadcss Build Status npm version

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 test

License

MIT

About

Fast and reliable utility to asynchronously load multiple css files

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published