Asynchronous module definition
Asynchronous module definition is a specification for the programming language JavaScript. It defines an application programming interface that defines code modules and their dependencies, and loads them asynchronously if desired. Implementations of AMD provide the following benefits:
- Website performance improvements. AMD implementations load smaller JavaScript files, and then only when they are needed.
- Fewer page errors. AMD implementations allow developers to define dependencies that must load before a module is executed, so the module does not try to use outside code that is not available yet....
AMD provides some CommonJS interoperability. It allows for using a similar and interface in the code, although its own interface is more basal and preferred.
The AMD specification is implemented by Dojo Toolkit, RequireJS, and other libraries.