From 326601394acd8fface90990fae63236ffa880bc4 Mon Sep 17 00:00:00 2001 From: pawurb Date: Wed, 6 May 2020 22:59:28 +0200 Subject: [PATCH] commento.js: add lazy loading to avatar images --- frontend/js/commento.js | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/js/commento.js b/frontend/js/commento.js index c27dbee..9cf67db 100644 --- a/frontend/js/commento.js +++ b/frontend/js/commento.js @@ -314,6 +314,7 @@ } else { avatar = create("img"); attrSet(avatar, "src", cdn + "/api/commenter/photo?commenterHex=" + commenter.commenterHex); + attrSet(avatar, "loading", "lazy"); classAdd(avatar, "avatar-img"); }