You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`loadImage(String|Image)` load an image returning a promise
94
-
-`loadImages(Array|NodeList)` load in parallel multiple images returning a promise
95
-
-`loadImagesGen(Array|NodeList)` load multiple images sequentially returning a ES6 generator
106
+
<!-- Generated by documentation.js. Update this documentation by updating the source code. -->
107
+
108
+
### loadImage
109
+
110
+
Preload any image
111
+
112
+
**Parameters**
113
+
114
+
-`img`**([String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)\|[HTMLElement](https://developer.mozilla.org/en-US/docs/Web/HTML/Element))** Path to the image or image object
115
+
116
+
Returns **[Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)** a promise that will be resolved when the image will be completely loaded
117
+
118
+
### loadImages
119
+
120
+
Load in parallel a collection of images
121
+
122
+
**Parameters**
123
+
124
+
-`imgs`**([Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array)\|[NodeList](https://developer.mozilla.org/en-US/docs/Web/API/NodeList))** array of strings or <img> HTML elements
125
+
126
+
Returns **[Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)** a promise that will be resolved when all the images will be loaded
-`imgs`**([Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array)\|[NodeList](https://developer.mozilla.org/en-US/docs/Web/API/NodeList))** array of strings or <img> HTML elements
0 commit comments