开发者

What Browser-side Javascript Module Loaders are production-ready?

I'm working on a large web application with many javascript files. I'd 开发者_如何学编程like to turn those into CommonJs Modules to make dependencies explicit. What browser-side loaders exist for CommonJs modules, and what are their limitations?

Browser targeted CommonJS loaders that I can find are Tiki and Yabble. Has anyone tried them, and how well do they work?


Merge your scripts, to load it faster, http://www.sencha.com/products/jsbuilder/! It's not only build extjs, it can build any kind of javascript.

But if you need module loader, try RequireJS -- simple, well tested, well documented.


If you know exactly which files you want to package together, check out Demodule.

https://github.com/jaekwon/demodule

It supports CommonJS.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜