Search code examples
javascriptasynchronousamdcommonjs

Do AMD apps load faster than CommonJS apps in the browser?


I have read quite a lot on those two subjects, but they still confuse me. From what I understand, AMD is generally a better choice for front-end applications, since it handles asynchronicity better. Does that mean that AMD applications are faster? Why are AMD modules better suited for browsers?


Solution

  • According to @Mike C, an application using AMD modules will load faster than an application using CommonJS modules, but the difference is in micro-milliseconds.