feat: lazy load images (#1969)

This commit is contained in:
Shinigami 2023-04-26 22:46:00 +02:00 committed by GitHub
parent 1ceb3e2857
commit 23c1dfec10
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 57 additions and 48 deletions

View file

@ -214,7 +214,7 @@ watch(shouldLoadAttachment, () => {
@click="!shouldLoadAttachment ? loadAttachment() : openMediaPreview(attachments ? attachments : [attachment], attachments?.indexOf(attachment) || 0)"
>
<CommonBlurhash
:blurhash="attachment.blurhash"
:blurhash="attachment.blurhash || ''"
class="status-attachment-image"
:src="src"
:srcset="srcset"