Function reload

  • retry loading assets after a loading failure

    Parameters

    • src: string

      src of asset to reload

    Returns void

    loader

    event.on(
    event.LOADER_ERROR,
    (res) => {
    // custom function
    showErrorNotification({
    text: `Error during loading content: ${res.name}`,
    done: loader.reload(res.src);
    })
    }
    );