|
|
@@ -279,9 +279,9 @@ this.docHelper = this.docHelper || (() => {
|
|
|
doc.querySelectorAll("img").forEach((imageElement, imageElementIndex) => {
|
|
|
imageElement.setAttribute(imagesAttributeName(options.sessionId), imageElementIndex);
|
|
|
const imageData = {
|
|
|
- currentSrc: (options.lazyLoadImages && imageElement.dataset.lazySrc) || imageElement.currentSrc
|
|
|
+ currentSrc: (options.lazyLoadImages && imageElement.getAttribute("data-lazy-loaded-src")) || imageElement.currentSrc
|
|
|
};
|
|
|
- delete imageElement.dataset.lazySrc;
|
|
|
+ imageElement.removeAttribute("data-lazy-loaded-src");
|
|
|
const computedStyle = win.getComputedStyle(imageElement);
|
|
|
if (computedStyle) {
|
|
|
imageData.size = getSize(win, imageElement);
|