Parameter | Type | Description |
---|---|---|
fileName | string | Path to the JS file to load. |
callback | Action | Function to call when the JS file has been loaded. |
This method works by enumerating the script tags in the current document for a matching fileName, if the item is not found then it is inserted in the document. If the item is found, then nothing is done.