Members
-
-
- See:
-
-
Methods
-
Loader.pre (fn)Loader static
-
Sets up a middleware function that will run before the resource is loaded.
Name Type Description fnfunction The middleware function to register.
Returns:
Type Description Loader Returns itself. -
Loader.use (fn)Loader static
-
Sets up a middleware function that will run after the resource is loaded.
Name Type Description fnfunction The middleware function to register.
Returns:
Type Description Loader Returns itself.
Type Definitions
-
When the loader completes loading resources it dispatches this callback.
Name Type Description loaderLoader The loader that has finished loading resources.
-
When an error occurrs the loader and resource are disaptched.
Name Type Description loaderLoader The loader the error happened in.
resourceResource The resource that caused the error.
-
When a load completes the loader and resource are disaptched.
Name Type Description loaderLoader The loader that laoded the resource.
resourceResource The resource that has completed loading.
-
When the progress changes the loader and resource are disaptched.
Name Type Description loaderLoader The loader the progress is advancing on.
resourceResource The resource that has completed or failed to cause the progress to advance.
-
When the loader starts loading resources it dispatches this callback.
Name Type Description loaderLoader The loader that has started loading resources.