kubetail-org / loadjs

A tiny async loader / dependency manager for modern browsers (899 bytes)
MIT License
2.58k stars 150 forks source link

load CSS #21

Closed neuropass closed 8 years ago

neuropass commented 8 years ago

Could you add the possibility of loading other common resources Asynch? Like CSS for example. would this be possible without adding too much code overhead to loadJS?

Or perhaps creating new repos and have few handy modules that can be imported to add extra optional functionality to loadJS?

Let me know your thoughts.

amorey commented 8 years ago

I think adding support for CSS is a good idea. It'll add some overhead but not very much. Are there any other resources that you need?

neuropass commented 8 years ago

I think CSS would be perfect and probably the most used.

amorey commented 8 years ago

@neuropass I added support for CSS file loading in the loadjs:css branch: https://github.com/muicss/loadjs/tree/css

Please try it out and let me know if you run into any issues.

amorey commented 8 years ago

CSS support has been added to LoadJS v2.1.0: https://github.com/muicss/loadjs https://www.npmjs.com/package/loadjs