Lazy load attachment images by default
This commit is contained in:
parent
139d43eda5
commit
7042d0f4b6
3 changed files with 3 additions and 0 deletions
|
@ -155,6 +155,7 @@
|
|||
>
|
||||
<StillImage
|
||||
class="image"
|
||||
:loading="'lazy'"
|
||||
:referrerpolicy="referrerpolicy"
|
||||
:mimetype="attachment.mimetype"
|
||||
:src="attachment.large_thumb_url || attachment.url"
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
const StillImage = {
|
||||
props: [
|
||||
'loading',
|
||||
'src',
|
||||
'referrerpolicy',
|
||||
'mimetype',
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
<img
|
||||
ref="src"
|
||||
:key="src"
|
||||
:loading="loading"
|
||||
:alt="alt"
|
||||
:title="alt"
|
||||
:src="src"
|
||||
|
|
Loading…
Reference in a new issue