Set 'loading="lazy"' for regular avatars
authorTim Düsterhus <duesterhus@woltlab.com>
Thu, 22 Apr 2021 13:14:57 +0000 (15:14 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Thu, 22 Apr 2021 13:17:52 +0000 (15:17 +0200)
commit1b68e7caa917207c0f91a737ad2f07f944a87bc9
tree22b95b9f41ad6469cea03c046d74418b6c9349a1
parentde620ca8fbf53c7d3bd5db2312395c91fd7c8531
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
wcfsetup/install/files/lib/data/user/avatar/UserAvatar.class.php