From 06b9d39662cdb0768d91829db2120adfd1f420c7 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 13 Feb 2020 20:20:55 +0300 Subject: [PATCH] add support for image loading=lazy attribute --- include/functions.php | 1 + 1 file changed, 1 insertion(+) diff --git a/include/functions.php b/include/functions.php index ce8a07d51..411ba3995 100644 --- a/include/functions.php +++ b/include/functions.php @@ -1282,6 +1282,7 @@ if ($entry->nodeName == 'img') { $entry->setAttribute('referrerpolicy', 'no-referrer'); + $entry->setAttribute('loading', 'lazy'); $entry->removeAttribute('width'); $entry->removeAttribute('height');