You should use seaJS/RequireJS.
A Javascript Module Loader which is compatible with AMD and CMD Specification.
现代WEB前端开发的基石 (Cornerstone of Modern Front-End Web Development)
Chrome 3+ ; Firefox 2+ ; Safari 3.2+ ; Opera 10+ ; IE 6+ .
Halberd-JS is available under the terms of the MIT License.
- Publishing tools (merge && minify)
- Events support for plugins