Members
-
-
- See:
-
-
Methods
-
Loader.pre (fn)Loader static
-
Sets up a middleware function that will run before the resource is loaded.
Name Type Description fn
function 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 fn
function 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 loader
Loader The loader that has finished loading resources.
-
When an error occurrs the loader and resource are disaptched.
Name Type Description loader
Loader The loader the error happened in.
resource
Resource The resource that caused the error.
-
When a load completes the loader and resource are disaptched.
Name Type Description loader
Loader The loader that laoded the resource.
resource
Resource The resource that has completed loading.
-
When the progress changes the loader and resource are disaptched.
Name Type Description loader
Loader The loader the progress is advancing on.
resource
Resource 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 loader
Loader The loader that has started loading resources.