Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Asynchronous module definition

From Wikipedia, the free encyclopedia
Specification for JavaScript programming language
Instead of loading files one after the other, AMD can load them all separately, even when they are dependent on each other.

Asynchronous module definition (AMD) is aspecification for the programming languageJavaScript. It defines anapplication programming interface (API) that definescode modules and theirdependencies, 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....

In addition to loading multiple JavaScript files at runtime, AMD implementations allow developers to encapsulate code in smaller, more logically-organized files, in a way similar to other programming languages such asJava. For production and deployment, developers canconcatenate andminify JavaScript modules based on an AMD API into one file, the same as traditional JavaScript.

AMD provides someCommonJS interoperability. It allows for using a similarexports andrequire() interface in the code, although its owndefine() interface is more basal and preferred.[1]

The AMD specification is implemented byDojo Toolkit, RequireJS, and other libraries.

References

[edit]
  1. ^"AMD specification".GitHub. Group for AMD JS Module API. 28 October 2019. Retrieved28 October 2019.

External links

[edit]
Dialects
Engines
Frameworks
Client-side
Server-side
Multiple
  • Cappuccino
Libraries
People
Other
Retrieved from "https://en.wikipedia.org/w/index.php?title=Asynchronous_module_definition&oldid=1333921248"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp