|
@@ -45,7 +45,9 @@ this.lazyLoader = this.lazyLoader || (() => {
|
|
|
if (mutation.attributeName == "src") {
|
|
if (mutation.attributeName == "src") {
|
|
|
mutation.target.setAttribute(LAZY_SRC_ATTRIBUTE_NAME, mutation.target.src);
|
|
mutation.target.setAttribute(LAZY_SRC_ATTRIBUTE_NAME, mutation.target.src);
|
|
|
}
|
|
}
|
|
|
- return mutation.attributeName != LAZY_SRC_ATTRIBUTE_NAME && mutation.target.className != SINGLE_FILE_UI_ELEMENT_CLASS;
|
|
|
|
|
|
|
+ if (mutation.attributeName == "src" || mutation.attributeName == "srcset" || mutation.target.tagName == "SOURCE") {
|
|
|
|
|
+ return mutation.target.className != SINGLE_FILE_UI_ELEMENT_CLASS;
|
|
|
|
|
+ }
|
|
|
});
|
|
});
|
|
|
if (updated.length) {
|
|
if (updated.length) {
|
|
|
srcAttributeChanged = true;
|
|
srcAttributeChanged = true;
|