From 04e04bfb15597a05fdfd814df4efd1b599fe6073 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sun, 8 May 2022 13:54:02 +0200 Subject: [PATCH] =?utf8?q?Lazy=20loading=20the=20user=E2=80=99s=20avatar?= =?utf8?q?=20causes=20flashes?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Safari (macOS and iOS) does not handle lazy loaded images above the fold gracefully. This causes the user’s avatar to flicker noticeably on ever page navigation. --- com.woltlab.wcf/templates/pageHeaderUser.tpl | 4 ++-- .../lib/data/user/avatar/AvatarDecorator.class.php | 4 ++-- .../files/lib/data/user/avatar/UserAvatar.class.php | 10 ++++++++-- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/com.woltlab.wcf/templates/pageHeaderUser.tpl b/com.woltlab.wcf/templates/pageHeaderUser.tpl index 1c02dc3d27..d7650b054e 100644 --- a/com.woltlab.wcf/templates/pageHeaderUser.tpl +++ b/com.woltlab.wcf/templates/pageHeaderUser.tpl @@ -1,6 +1,6 @@