chore: lazy load webmention images

This commit is contained in:
Cory Dransfeldt 2024-01-27 13:03:52 -08:00
parent cf0c738ca8
commit 00d561ab42
No known key found for this signature in database
2 changed files with 2 additions and 0 deletions

View file

@ -10,6 +10,7 @@
src="{{ mention.author.photo }}"
alt="{{ mention.author.name }}"
class="avatar__image"
loading="lazy"
onerror="this.onerror=null; this.src='/assets/img/icons/user.webp'" />
</div>
</a>

View file

@ -15,6 +15,7 @@
src="{{ mention.author.photo }}"
alt="{{ mention.author.name }}"
class="avatar__image"
loading="lazy"
onerror="this.onerror=null; this.src='/assets/img/icons/user.webp'" />
</div>
</a>