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 %>
|
<% 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>
|
||||||
|
Loading…
Reference in New Issue
Block a user