Skip to content

Component that helps you to inject stylesheets at runtime.

License

Notifications You must be signed in to change notification settings

konexmedia/injecss

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

injecss

Component that helps you to inject stylesheets at runtime.

Installation

bower install konexmedia/race

OR

component install konexmedia/race

API

injecss(uri[, callback]);

Arguments

uri

String

The URI which points to the stylesheet that should be injected.

callback (optional)

Function which should be called after the stylesheet has been injected.

Usage example

var injecss = konexmedia.injecss; // AMD: require(['injecss'], function () {...});

injecss('styles/ie6.min.css', function (err) {
    if (err) {
        return console.error(err);
    }

    // Stylesheet loaded
});

Author

Copyright 2014, konexmedia

About

Component that helps you to inject stylesheets at runtime.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published