avatars: Mark as lazy-loaded.

Similar to the previous commit, defer loading avatar images until they
are actually likely to be seen.
This commit is contained in:
Alex Vandiver 2024-08-02 18:47:59 +00:00 committed by Tim Abbott
parent 2f2803431d
commit 00dfb60f5b
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
<div class="u-{{msg/sender_id}} message-avatar sender_info_hover view_user_card_tooltip no-select" aria-hidden="true" data-is-bot="{{sender_is_bot}}">
<div class="inline_profile_picture {{#sender_is_guest}} guest-avatar{{/sender_is_guest}}">
<img src="{{small_avatar_url}}" alt="" class="no-drag"/>
<img loading="lazy" src="{{small_avatar_url}}" alt="" class="no-drag"/>
</div>
</div>
{{~! remove whitespace ~}}