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