From 3cf985eb11264584043b990b3fff29147bddcdf9 Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Mon, 10 Oct 2022 23:16:57 +0200 Subject: [PATCH] Use appropriate image sizes and lazy loading in userbox --- app/views/shared/_userbox.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/shared/_userbox.haml b/app/views/shared/_userbox.haml index 43e882ea..e3ce5116 100644 --- a/app/views/shared/_userbox.haml +++ b/app/views/shared/_userbox.haml @@ -2,7 +2,7 @@ .card.h-100.userbox %img.userbox__header{ src: user.profile_header.url(:mobile) } .card-body - %img.userbox__avatar{ src: user.profile_picture.url(:small) } + %img.userbox__avatar{ src: user.profile_picture.url(:small), loading: :lazy } %a.profile__name{ href: user_path(user) } - unless user.profile.display_name.blank? .profile__display-name