Asynchronous Module Definitions (AMD) and RequireJS

This topic applies to

Applies to

SuiteCommerce Advanced

Although Backbone.js provides a general framework for web applications, it does not specify how application code should be organized. To organize code into modules, SuiteCommerce Advanced implements another design pattern called Asynchronous Module Definitions (AMD). AMD specifies how JavaScript files are loaded into an application. This includes the order in which files are downloaded and dependencies are evaluated.

To implement AMD, SuiteCommerce Advanced uses the RequireJS library. RequireJS is an open-source library that defines a framework for organizing code into modules. All modules in SuiteCommerce Advanced correspond to the syntax and requirements of AMD.

See Dependencies for more information on how modules implement the AMD design pattern.