1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 21:25:55 +00:00

add support for image loading=lazy attribute

This commit is contained in:
Andrew Dolgov
2020-02-13 20:20:55 +03:00
parent 47135160d1
commit 06b9d39662

View File

@@ -1282,6 +1282,7 @@
if ($entry->nodeName == 'img') { if ($entry->nodeName == 'img') {
$entry->setAttribute('referrerpolicy', 'no-referrer'); $entry->setAttribute('referrerpolicy', 'no-referrer');
$entry->setAttribute('loading', 'lazy');
$entry->removeAttribute('width'); $entry->removeAttribute('width');
$entry->removeAttribute('height'); $entry->removeAttribute('height');