The retried asset counts towards the progress of the preload it failed in,
and once every asset of that preload has loaded, that preload completes:
its own callback is called, if it was given one, and LOADER_COMPLETE is
emitted. The promise that preload returned has already rejected and stays so.
Parameters
src: string
src of asset to reload
Returns void
Example
event.on( event.LOADER_ERROR, (res) => { // custom function showErrorNotification({ text:`Error during loading content: ${res.name}`, done:loader.reload(res.src); }) } );
retry loading assets after a loading failure.
The retried asset counts towards the progress of the preload it failed in, and once every asset of that preload has loaded, that preload completes: its own callback is called, if it was given one, and
LOADER_COMPLETEis emitted. The promise that preload returned has already rejected and stays so.