chore: lazy load webmention images
This commit is contained in:
parent
cf0c738ca8
commit
00d561ab42
2 changed files with 2 additions and 0 deletions
|
@ -10,6 +10,7 @@
|
||||||
src="{{ mention.author.photo }}"
|
src="{{ mention.author.photo }}"
|
||||||
alt="{{ mention.author.name }}"
|
alt="{{ mention.author.name }}"
|
||||||
class="avatar__image"
|
class="avatar__image"
|
||||||
|
loading="lazy"
|
||||||
onerror="this.onerror=null; this.src='/assets/img/icons/user.webp'" />
|
onerror="this.onerror=null; this.src='/assets/img/icons/user.webp'" />
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
src="{{ mention.author.photo }}"
|
src="{{ mention.author.photo }}"
|
||||||
alt="{{ mention.author.name }}"
|
alt="{{ mention.author.name }}"
|
||||||
class="avatar__image"
|
class="avatar__image"
|
||||||
|
loading="lazy"
|
||||||
onerror="this.onerror=null; this.src='/assets/img/icons/user.webp'" />
|
onerror="this.onerror=null; this.src='/assets/img/icons/user.webp'" />
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
|
|
Reference in a new issue