summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2020-02-13 20:20:55 +0300
committerAndrew Dolgov <[email protected]>2020-02-13 20:20:55 +0300
commit06b9d39662cdb0768d91829db2120adfd1f420c7 (patch)
treed96eaa272262ea306be94c422acae44088f5545d /include
parent47135160d1fd84e88ebfeb9400ca7ac8c965c39c (diff)
add support for image loading=lazy attribute
Diffstat (limited to 'include')
-rw-r--r--include/functions.php1
1 files changed, 1 insertions, 0 deletions
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');