Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
css
 
 
 
 
 
 
 
 

Require.js plugin for loading CSS stylesheets

The plugin allows user to load a CSS resource via require.js. To use it, create a CSS rule in your stylesheet, e.g.:

.<file base name>-css-loaded {
	height: 1px;
}

/*for CSS file sample.css*/
.sample-css-loaded {
	height: 1px;
}	

Then require your resource along with the others:

require(['css!css/sample.css'], function() {
	alert('Stylesheet has been loaded');
});

Please, see the demo.html file for the full sample.

About

A Require.js plugin for loading CSS resources

Resources

Releases

No releases published

Packages

No packages published