Skip to content
kerrishotts edited this page Nov 13, 2012 · 1 revision

(part of PKUTIL)

Return Type: void

Parameters: theScripts ( Array of string ), completion ( function )

Using PKUTIL.load, this function loads each file in theScripts into the DOM and creates a SCRIPT tag for each one. This has the effect of executing the script.

Once all scripts are loaded, the completion function is called.

For example:

PKUTIL.include ( ["file2.js", "file1.js"], everythingLoaded );

Notes

  • The filenames specified in theScripts array are processed in reverse order, so if any dependencies are required, the dependent scripts must appear first in the list.
  • Any failure to load a script will result in an error on the console, but the remaining scripts will attempt to be loaded.

Version

0.1 Introduced

0.2 Docs Valid

Clone this wiki locally