ScriptLoader - Client

Provides the ability to load scripts asynchronously.

The ScriptLoader API can be used in client-side scripts using ListV2 and ListV3 APIs.

You access the ScriptLoader methods by using the global object ScriptLoader.

ScriptLoader - getScripts(String filePath, Function callback)

Gets scripts asynchronously.

Table 1. Parameters
Name Type Description
filePath String A path, including the file name, that contains one or more scripts.
callback Function The function to be called after the scripts have been loaded. The callback function has no arguments.
Table 2. Returns
Type Description
void

ScriptLoader - getScripts(Array scripts, Function callback)

Loads scripts asynchronously.

Table 3. Parameters
Name Type Description
scripts Array An array of scripts.
callback Function The function called when the scripts have been loaded. The callback function has no arguments.
Table 4. Returns
Type Description
void