Creates a promise object which is resolved when all images are loaded.
Note: The module depends on the global
Promise object to be available.
const preloader = ;// load single imagepreloader;// The `batchLoad` method accepts an array of url strings. (Or a single url.)// The returned promise will be resolved, when all images are loaded (or failed to load)preloader;