IT:AD:Require.JS
- See also:
- IT:AD:System.JS ← a universal loader.
Summary
Provides a way to load code files before invoking a method in it:
require(["helper/util"], function(util) { //This function is called when scripts/helper/util.js is loaded. //If util.js calls define(), then this function is not fired until //util's dependencies have loaded, and the util argument will hold //the module value for "helper/util". });
Alternatives
- LabJS
- dojo.require
- YepNope