|
|
@@ -284,6 +284,7 @@ this.SingleFileCore = (() => {
|
|
|
if (dataBg && dataBg.startsWith(DATA_URI_PREFIX) && dataBg != EMPTY_DATA_URI && !element.style.backgroundImage.includes(dataBg)) {
|
|
|
element.style.backgroundImage = "url(" + element.dataset.bg + ")";
|
|
|
element.removeAttribute("data-bg");
|
|
|
+ element.removeAttribute("data-lazyload");
|
|
|
}
|
|
|
});
|
|
|
this.doc.querySelectorAll("[data-srcset]").forEach(imgElement => {
|
|
|
@@ -291,6 +292,7 @@ this.SingleFileCore = (() => {
|
|
|
if (srcset && imgElement.srcset != srcset) {
|
|
|
imgElement.srcset = srcset;
|
|
|
imgElement.removeAttribute("data-srcset");
|
|
|
+ element.removeAttribute("data-lazyload");
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
@@ -629,6 +631,7 @@ this.SingleFileCore = (() => {
|
|
|
if (dataSrc && dataSrc.startsWith(DATA_URI_PREFIX) && dataSrc != EMPTY_DATA_URI && element.src != dataSrc) {
|
|
|
element.src = element.dataset[attributeName];
|
|
|
element.removeAttribute("data-" + attributeName);
|
|
|
+ element.removeAttribute("data-lazyload");
|
|
|
}
|
|
|
});
|
|
|
}
|