requirejs / almond

A minimal AMD API implementation for use after optimized builds
Other
2.42k stars 168 forks source link

Loading CSS files #120

Closed pYr0x closed 8 years ago

pYr0x commented 8 years ago

is it possible to load CSS files and append them to the document?

jrburke commented 8 years ago

almond provides an AMD API for built resources that are bundled into one JS file, so it cannot do any loading of external items. If there is a loader plugin that implements the build APIs that the r.js optimizer calls, then it could be possible for that loader plugin to inline resources that, in the case of CSS, could attach some