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); }