From: Tim Düsterhus Date: Tue, 27 Apr 2021 14:17:38 +0000 (+0200) Subject: Lazily load attachments X-Git-Tag: 5.4.0_Alpha_1~35^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=97970d1abb8398851dccf494bbc05c86d80bfb85;p=GitHub%2FWoltLab%2FWCF.git Lazily load attachments see #3980 --- diff --git a/wcfsetup/install/files/lib/system/bbcode/AttachmentBBCode.class.php b/wcfsetup/install/files/lib/system/bbcode/AttachmentBBCode.class.php index 5fe770b73a..454aa88896 100644 --- a/wcfsetup/install/files/lib/system/bbcode/AttachmentBBCode.class.php +++ b/wcfsetup/install/files/lib/system/bbcode/AttachmentBBCode.class.php @@ -155,7 +155,7 @@ class AttachmentBBCode extends AbstractBBCode $result = ''; + )) . '"' . ($imageClasses ? ' class="' . $imageClasses . '"' : '') . ' width="' . ($attachment->hasThumbnail() ? $attachment->thumbnailWidth : $attachment->width) . '" height="' . ($attachment->hasThumbnail() ? $attachment->thumbnailHeight : $attachment->height) . '" alt="" loading="lazy">'; } if (!$hasParentLink && $attachment->hasThumbnail() && $attachment->canDownload()) { $result = '