Type Alias: LoaderFunctions
LoaderFunctions =
object
Defined in: src/loader/LoaderFunctions.ts:5
Loader callback functions
Properties
onProgress?
optionalonProgress?:Function
Defined in: src/loader/LoaderFunctions.ts:12
The callback function in the load
Param
receivedLength
Number of bytes loaded
Param
contentLength
Total number of bytes of resources
Param
url
resources URL
onComplete?
optionalonComplete?:Function
Defined in: src/loader/LoaderFunctions.ts:18
Load the completed callback function
Param
url
resources URL
onError?
optionalonError?:Function
Defined in: src/loader/LoaderFunctions.ts:24
The callback function for which a load error occurred
Param
error
Error object
onUrl?
optionalonUrl?:Function
Defined in: src/loader/LoaderFunctions.ts:31
The URL modification callback allows you to modify the original url and return a custom path
Param
url
Original resource URL
Returns
The new URL after modification
headers?
optionalheaders?:object
Defined in: src/loader/LoaderFunctions.ts:36
Customize headers, you can modify/add fetch header information

