Creates a promise object which is resolved when all images are loaded.
Note: The module depends on the global
Promise object to be available.
Since it's a CommonJS module, you must use a build tool to use it, like Browserify, or webpack.
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;