Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

avatars: Mark as lazy-loaded.

Alex Vandiver00dfb60f5b82
diff --git a/web/templates/message_avatar.hbs b/web/templates/message_avatar.hbs
index df614d526ba..2427901caa5 100644
--- a/web/templates/message_avatar.hbs
+++ b/web/templates/message_avatar.hbs
@@ -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 ~}}