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
<!-- Generated by documentation.js. Update this documentation by updating the source code. -->
78
78
79
+
#### Table of Contents
80
+
81
+
-[loadImage](#loadimage)
82
+
-[Parameters](#parameters)
83
+
-[loadImages](#loadimages)
84
+
-[Parameters](#parameters-1)
85
+
79
86
### loadImage
80
87
81
88
Preload any image
82
89
83
-
**Parameters**
90
+
#### Parameters
84
91
85
-
-`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
92
+
-`img`**([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)\|[HTMLElement](https://developer.mozilla.org/docs/Web/HTML/Element))** Path to the image or image object
86
93
87
-
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
94
+
Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)** a promise that will be resolved when the image will be completely loaded
88
95
89
96
### loadImages
90
97
91
98
Load in parallel a collection of images
92
99
93
-
**Parameters**
100
+
#### Parameters
94
101
95
-
-`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
102
+
-`imgs`**([Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)\|[NodeList](https://developer.mozilla.org/docs/Web/API/NodeList))** array of strings or <img> HTML elements
96
103
97
-
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
104
+
Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)** a promise that will be resolved when all the images will be loaded
0 commit comments