Classes
Methods
add(script)
Add a script to load path
Parameters:
Name | Type | Description |
---|---|---|
script |
url to load the script from |
- Source:
(async) load(parallel)
Load all scripts
Parameters:
Name | Type | Default | Description |
---|---|---|---|
parallel |
false | default false - wait for each one to load before loading the next one |
- Source:
(async) loadScriptsToDocument(urls, parallel)
Utility method - load a script and append it to document head
Parameters:
Name | Type | Description |
---|---|---|
urls |
array containing URLs of scripts | |
parallel |
optionally load in parallel |
- Source: