name | type | arguments | Default | description |
---|---|---|---|---|
baseURL | string | <optional> |
A URL used to resolve paths given to the loader. Example: 'http://labs.phaser.io/assets/'. |
|
path | string | <optional> |
A URL path used to resolve relative paths given to the loader. Example: 'images/sprites/'. |
|
maxParallelDownloads | number | <optional> | 32 |
The maximum number of resources the loader will start loading at once. |
crossOrigin | string | undefined | <optional> |
'anonymous', 'use-credentials', or |
|
responseType | string | <optional> |
The response type of the XHR request, e.g. |
|
async | boolean | <optional> | true |
Should the XHR request use async or not? |
user | string | <optional> |
Optional username for all XHR requests. |
|
password | string | <optional> |
Optional password for all XHR requests. |
|
timeout | number | <optional> | 0 |
Optional XHR timeout value, in ms. |
localScheme | Array.<string> | <optional> |
An optional array of schemes that the Loader considers as being 'local' files. Defaults to: |
|
withCredentials | boolean | <optional> | false |
Optional XHR withCredentials value. |
imageLoadType | string | <optional> | 'XHR' |
Optional load type for image, |
maxRetries | number | <optional> | 2 |
The number of times to retry the file load if it fails. |