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 <StillImage
class="image" class="image"
:loading="'lazy'"
:referrerpolicy="referrerpolicy" :referrerpolicy="referrerpolicy"
:mimetype="attachment.mimetype" :mimetype="attachment.mimetype"
:src="attachment.large_thumb_url || attachment.url" :src="attachment.large_thumb_url || attachment.url"

View File

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

View File

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