mirror of
https://github.com/a2nt/silverstripe-elemental-basics.git
synced 2024-10-22 17:05:54 +02:00
IMPR: lazy load bigimages
This commit is contained in:
parent
7fe9afdd3c
commit
daf40d2a65
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user