Lazy load attachment images by default
This commit is contained in:
parent
139d43eda5
commit
7042d0f4b6
|
@ -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"
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
const StillImage = {
|
const StillImage = {
|
||||||
props: [
|
props: [
|
||||||
|
'loading',
|
||||||
'src',
|
'src',
|
||||||
'referrerpolicy',
|
'referrerpolicy',
|
||||||
'mimetype',
|
'mimetype',
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue