module.AbstractModuleLoader
An interface that loads JavaScript modules.

Inheritance

Constructor

goog.module.AbstractModuleLoader()

Instance Methods

Public Protected Private
loadModules(idsmoduleInfoMapopt_successFnopt_errorFnopt_timeoutFnopt_forceReload)
Loads a list of JavaScript modules.
Arguments:
ids : Array.<string>
The module ids in dependency order.
moduleInfoMap : Object
A mapping from module id to ModuleInfo object.
opt_successFn : function()?=
The callback if module loading is a success.
opt_errorFn : function(?number)?=
The callback if module loading is an error.
opt_timeoutFn : function()?=
The callback if module loading times out.
opt_forceReload : boolean=
Whether to bypass cache while loading the module.
code »
prefetchModule(idmoduleInfo)
Pre-fetches a JavaScript module.
Arguments:
id : string
The module id.
moduleInfo : !goog.module.ModuleInfo
The module info.
code »

Package module

Package Reference