commento.js: add lazy loading to avatar images
This commit is contained in:
parent
3c3cf08656
commit
326601394a
@ -314,6 +314,7 @@
|
|||||||
} else {
|
} else {
|
||||||
avatar = create("img");
|
avatar = create("img");
|
||||||
attrSet(avatar, "src", cdn + "/api/commenter/photo?commenterHex=" + commenter.commenterHex);
|
attrSet(avatar, "src", cdn + "/api/commenter/photo?commenterHex=" + commenter.commenterHex);
|
||||||
|
attrSet(avatar, "loading", "lazy");
|
||||||
classAdd(avatar, "avatar-img");
|
classAdd(avatar, "avatar-img");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user