Merge pull request 'Lazy load image attachments' (#2) from verifiedjoseph/tt-rss:lazy-load-image-attachments into master

Reviewed-on: https://git.tt-rss.org/fox/tt-rss/pulls/2
This commit is contained in:
fox 2021-02-15 11:55:12 +03:00
commit 916c21fe60
1 changed files with 1 additions and 1 deletions

View File

@ -443,7 +443,7 @@ class Article extends Handler_Protected {
$encsize .= ' height="' . intval($entry['height']) . '"';
if ($entry['width'] > 0)
$encsize .= ' width="' . intval($entry['width']) . '"';
$rv .= "<p><img
$rv .= "<p><img loading=\"lazy\"
alt=\"".htmlspecialchars($entry["filename"])."\"
src=\"" .htmlspecialchars($entry["url"]) . "\"
" . $encsize . " /></p>";