Lazy load attachment images by default

This commit is contained in:
itepechi 2023-09-17 05:48:04 +09:00
parent 139d43eda5
commit 7042d0f4b6
3 changed files with 3 additions and 0 deletions

View File

@ -155,6 +155,7 @@
>
<StillImage
class="image"
:loading="'lazy'"
:referrerpolicy="referrerpolicy"
:mimetype="attachment.mimetype"
:src="attachment.large_thumb_url || attachment.url"

View File

@ -1,5 +1,6 @@
const StillImage = {
props: [
'loading',
'src',
'referrerpolicy',
'mimetype',

View File

@ -12,6 +12,7 @@
<img
ref="src"
:key="src"
:loading="loading"
:alt="alt"
:title="alt"
:src="src"