Skip to content
Snippets Groups Projects
Commit 3f2c37b5 authored by Michael Kessler's avatar Michael Kessler
Browse files

[TASK] Add lazy loading to images

parent 93846bb1
No related branches found
No related tags found
No related merge requests found
......@@ -86,6 +86,6 @@
<source media="(max-width: 1024px)"
srcset="{f:uri.image(image: file, height: '{tablet}', cropVariant: 'medium')}">
<f:image image="{file}" alt="{file.alternative}" title="{file.title}" width="1568c"
height="{desktop}" class="sg-slide-image" cropVariant="large" />
height="{desktop}" class="sg-slide-image" cropVariant="large" loading="lazy" />
</picture>
</f:section>
......@@ -15,7 +15,7 @@
<f:if condition="{settings.showDetails}">
<div class="tx-sgnews-author">
<f:if condition="{author.image}">
<f:image class="tx-sgnews-author-image" image="{author.image}" width="150c" height="150px" />
<f:image class="tx-sgnews-author-image" image="{author.image}" width="150c" height="150px" loading="lazy" />
</f:if>
<div class="tx-sgnews-author-information">
......
......@@ -17,7 +17,7 @@
<source media="(max-width: 1200px)"
srcset="{f:uri.image(src: newsMetaData.imageObject.uid, treatIdAsReference: '1', width: '1200c', height: '403c', cropVariant: 'small')}">
<f:image image="{newsMetaData.imageObject}" alt="" width="1845c"
height="619c"/>
height="619c" loading="lazy"/>
</picture>
</div>
</f:if>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment