Lazy load image attachments
This commit is contained in:
parent
37a81ba594
commit
68e2ccb354
|
@ -443,7 +443,7 @@ class Article extends Handler_Protected {
|
||||||
$encsize .= ' height="' . intval($entry['height']) . '"';
|
$encsize .= ' height="' . intval($entry['height']) . '"';
|
||||||
if ($entry['width'] > 0)
|
if ($entry['width'] > 0)
|
||||||
$encsize .= ' width="' . intval($entry['width']) . '"';
|
$encsize .= ' width="' . intval($entry['width']) . '"';
|
||||||
$rv .= "<p><img
|
$rv .= "<p><img loading=\"lazy\"
|
||||||
alt=\"".htmlspecialchars($entry["filename"])."\"
|
alt=\"".htmlspecialchars($entry["filename"])."\"
|
||||||
src=\"" .htmlspecialchars($entry["url"]) . "\"
|
src=\"" .htmlspecialchars($entry["url"]) . "\"
|
||||||
" . $encsize . " /></p>";
|
" . $encsize . " /></p>";
|
||||||
|
|
Loading…
Reference in New Issue