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
*/
public function getImageTag($size = null)
{
- return '<img src="' . StringUtil::encodeHTML($this->getURL($size)) . '" width="' . $size . '" height="' . $size . '" alt="" class="userAvatarImage">';
+ return '<img src="' . StringUtil::encodeHTML($this->getURL($size)) . '" width="' . $size . '" height="' . $size . '" alt="" class="userAvatarImage" loading="lazy">';
}
/**