CSSLoader
CSSLoader copied to clipboard
RequireJS plugin for reliably loading and waiting for css files.
We know,requireJS can set config.paths like this: require.config({ paths: { jquery: [ '../../xes/primary_math/js/jquery.min', 'http://xxx.com/primary_math/js/jquery.min' ] } }) how to use CSSLoader?
requirejs hangs forever on a `css!file` requirement in [PhantomJS](http://phantomjs.org/) because of a known issue: [onload event not fired for stylesheets · Issue #12332 · ariya/phantomjs](https://github.com/ariya/phantomjs/issues/12332). The problem is in `_isEventSupported`...
Is there anyway to unload a loaded CSS with this package? This would allow dynamically changing the CSS, for instance based on user input. I notice on a HTML control/component...
Dmitry, this seems like a good package! I found it through your own reference on [StackOverflow](http://stackoverflow.com/questions/7917639/requirejs-loading-modules-including-templates-and-css) :smile:. I'm going to test it out now. It would be nice for us...