From c6652ba9b42686af59a03bf21a8feb9ae238c62c Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Mon, 26 Sep 2022 10:58:46 +0200 Subject: [PATCH] Lazy load all message images --- dev/Common/Html.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/Common/Html.js b/dev/Common/Html.js index ad2f5f286..dcb667947 100644 --- a/dev/Common/Html.js +++ b/dev/Common/Html.js @@ -230,6 +230,7 @@ export const delAttribute('src'); if ('IMG' === name) { + oElement.loading = 'lazy'; let attachment; if (detectHiddenImages && (('' != getAttribute('height') && 3 > pInt(getAttribute('height'))) @@ -248,7 +249,6 @@ export const else if ((attachment = findLocationByCid(value))) { if (attachment.download) { - oElement.loading = 'lazy'; oElement.src = attachment.linkPreview(); attachment.isLinked(true); }