@gudhub/ssg-web-components-library 1.0.64 → 1.0.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -14,12 +14,15 @@ class ImageComponent extends GHComponent {
|
|
|
14
14
|
|
|
15
15
|
async onClientReady() {
|
|
16
16
|
window.addEventListener('load', () => {
|
|
17
|
+
// TODO: need to uncomment this when the image load delay is be done
|
|
18
|
+
// const timeoutForBase = this.hasAttribute('image-load-delay') ? this.getAttribute('image-load-delay') : 0;
|
|
19
|
+
|
|
17
20
|
let timeout;
|
|
18
21
|
clearTimeout(timeout);
|
|
19
22
|
|
|
20
23
|
timeout = setTimeout(() => {
|
|
21
24
|
this.generateSources();
|
|
22
|
-
},
|
|
25
|
+
}, 3000);
|
|
23
26
|
});
|
|
24
27
|
|
|
25
28
|
if (this.hasAttribute('data-rerender')) {
|