From: Tim Düsterhus Date: Fri, 30 Apr 2021 10:48:06 +0000 (+0200) Subject: Lazily load trophy images X-Git-Tag: 5.4.0_Alpha_1~18^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2120c51c000a11d897961fcf0287d69009d8a9a1;p=GitHub%2FWoltLab%2FWCF.git Lazily load trophy images see #3980 --- diff --git a/com.woltlab.wcf/templates/trophyImage.tpl b/com.woltlab.wcf/templates/trophyImage.tpl index e7a0881c9f..a864b2e047 100644 --- a/com.woltlab.wcf/templates/trophyImage.tpl +++ b/com.woltlab.wcf/templates/trophyImage.tpl @@ -5,4 +5,5 @@ {if $showTooltip}title="{$trophy->getTitle()}"{/if} class="trophyIcon{if $showTooltip} jsTooltip{/if}" data-trophy-id="{$trophy->getObjectID()}" + loading="lazy" /> diff --git a/wcfsetup/install/files/acp/templates/trophyImage.tpl b/wcfsetup/install/files/acp/templates/trophyImage.tpl index e7a0881c9f..a864b2e047 100644 --- a/wcfsetup/install/files/acp/templates/trophyImage.tpl +++ b/wcfsetup/install/files/acp/templates/trophyImage.tpl @@ -5,4 +5,5 @@ {if $showTooltip}title="{$trophy->getTitle()}"{/if} class="trophyIcon{if $showTooltip} jsTooltip{/if}" data-trophy-id="{$trophy->getObjectID()}" + loading="lazy" />