Archive

JavaScript AMD, curl.js, require.js alternative

I have been looking at the AMD spec (stands for Asynchronous Module Definition), and how this would apply to what I do in JavaScript. There are two notable frameworks: curl.js, require.js.

The presupposition in need of a AMD is that you have a very large code base with many modules, where some of them may be only used in some pages or states of the app. In my JavaScript MVC approach, however, this is not the case: the initial load is just a very core and minimal library, and nay page specific logic is always loaded on demand.

Comments: