IMPR: lazy load bigimages

This commit is contained in:
Tony Air 2024-01-26 14:11:58 +02:00
parent 7fe9afdd3c
commit daf40d2a65

View File

@ -12,8 +12,8 @@
<% if $Image || $ImageURL %> <% if $Image || $ImageURL %>
<span class="img"> <span class="img">
<img class="glide__img" <img class="glide__img"
src="{$EmptyImgSrc}" loading="lazy"
data-lazy-src="<% if $ImageURL %>$ImageURL<% else %>$Image.FocusFill($SlideWidth,$SlideHeight).URL<% end_if %>" src="<% if $ImageURL %>$ImageURL<% else %>$Image.FocusFill($SlideWidth,$SlideHeight).URL<% end_if %>"
alt="<% if $Headline %>$Headline.XML<% end_if %>" alt="<% if $Headline %>$Headline.XML<% end_if %>"
/> />
</span> </span>