Skip to content

Type alias: LoaderFunctions

Ƭ LoaderFunctions: Object

Loader callback functions

Type declaration

NameTypeDescription
onProgress?FunctionThe callback function in the load Param Number of bytes loaded Param Total number of bytes of resources Param resources URL
onComplete?FunctionLoad the completed callback function Param resources URL
onError?FunctionThe callback function for which a load error occurred Param Error object
onUrl?FunctionThe URL modification callback allows you to modify the original url and return a custom path Param Original resource URL
headers?{}Customize headers, you can modify/add fetch header information

Defined in

src/loader/LoaderFunctions.ts:5