We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62b1f9a commit 592ab1dCopy full SHA for 592ab1d
_javascript/modules/components/img-loading.js
@@ -47,8 +47,9 @@ export function loadImg() {
47
});
48
49
// Images loaded from the browser cache do not trigger the 'load' event
50
- document.querySelectorAll('article img[loading="lazy"]').forEach((img) => {
51
- if (img.complete) {
+ // Modified by Yunseo Kim: Images without both loading=“lazy” attribute and data-lqip attribute also do not trigger 'load' event
+ document.querySelectorAll('article img').forEach((img) => {
52
+ if (!img.hasAttribute(ATTR_DATA_LQIP) && img.complete) {
53
removeCover.call(img, cover.SHIMMER);
54
}
55
0 commit comments