diff options
author | Andrew Dolgov <[email protected]> | 2020-02-13 20:20:55 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2020-02-13 20:20:55 +0300 |
commit | 06b9d39662cdb0768d91829db2120adfd1f420c7 (patch) | |
tree | d96eaa272262ea306be94c422acae44088f5545d | |
parent | 47135160d1fd84e88ebfeb9400ca7ac8c965c39c (diff) |
add support for image loading=lazy attribute
-rw-r--r-- | include/functions.php | 1 |
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'); |