Lazy loading the user’s avatar causes flashes
authorAlexander Ebert <ebert@woltlab.com>
Sun, 8 May 2022 11:54:02 +0000 (13:54 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Sun, 8 May 2022 11:54:02 +0000 (13:54 +0200)
commit04e04bfb15597a05fdfd814df4efd1b599fe6073
tree8957932558d05d96497270c438c5a6a2b3da6249
parentff291de3634e291b16b74eab66a784ae78d8a4ed
Lazy loading the user’s avatar causes flashes

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
wcfsetup/install/files/lib/data/user/avatar/AvatarDecorator.class.php
wcfsetup/install/files/lib/data/user/avatar/UserAvatar.class.php