From 2120c51c000a11d897961fcf0287d69009d8a9a1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Fri, 30 Apr 2021 12:48:06 +0200 Subject: [PATCH] Lazily load trophy images see #3980 --- com.woltlab.wcf/templates/trophyImage.tpl | 1 + wcfsetup/install/files/acp/templates/trophyImage.tpl | 1 + 2 files changed, 2 insertions(+) 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" /> -- 2.20.1