loader.reload
reload(src: string) → {}
retry loading assets after a loading failure
event.on(
event.LOADER_ERROR,
(res) => {
// custom function
showErrorNotification({
text: `Error during loading content: ${res.name}`,
done: loader.reload(res.src);
})
}
);
Name | Type | Description |
---|---|---|
src | string |
src of asset to reload |
Type | Description |
---|