as we know, modular JavaScript is so popular today. there are many draft or protocol talking about modular JavaScript, such as CommonJS,AMD,CMD. there also have many module loader(RequireJS, LABjs, HeadJS).
but i want to know what is the history of modular JavaScript? long long ago, we only have Dojo lader.
The module pattern is generally attributed to Doug Crockford. It's something he promoted within the YUI team as part of the Global Variables Are Evil mantra. All modern approaches to modular JS are based on some variation of this concept, either explicitly (RequireJS) or under the hood (CommonJS). As for "history" ...
RequireJS discusses some of the history between CommonJS, AMD, and RequireJS
Wikipedia provides a brief history of CommonJS