From 1b68e7caa917207c0f91a737ad2f07f944a87bc9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Thu, 22 Apr 2021 15:14:57 +0200 Subject: [PATCH] Set 'loading="lazy"' for regular avatars This is safe and will not cause FOUC, because avatars already have an explicit width and height specified. I confirmed that the change works correctly in Firefox 88. see #3980 --- .../install/files/lib/data/user/avatar/UserAvatar.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/data/user/avatar/UserAvatar.class.php b/wcfsetup/install/files/lib/data/user/avatar/UserAvatar.class.php index 9fff8fc017..b60e9596f3 100644 --- a/wcfsetup/install/files/lib/data/user/avatar/UserAvatar.class.php +++ b/wcfsetup/install/files/lib/data/user/avatar/UserAvatar.class.php @@ -115,7 +115,7 @@ class UserAvatar extends DatabaseObject implements IUserAvatar, ISafeFormatAvata */ public function getImageTag($size = null) { - return ''; + return ''; } /** -- 2.20.1