Skip to content

Commit

Permalink
[TASK] added attribute loading="lazy" to img output
Browse files Browse the repository at this point in the history
  • Loading branch information
Teisi committed Jul 25, 2024
1 parent c3c1087 commit f391ebc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<f:variable name="downloadName"><f:if condition="{file.originalFile.properties.download_name}"><f:then>{file.originalFile.properties.download_name}</f:then><f:else><f:if condition="{file.title}"><f:then>{file.title}</f:then><f:else>{file.originalFile.properties.name}</f:else></f:if></f:else></f:if></f:variable>
<li>
<f:if condition="{data.uploads_type} == 1">
<img class="ce-uploads-icon" src="{f:uri.resource(path: 'EXT:{{EXTENSION_KEY}}/Resources/Public/Icons/FileIcons/{file.extension}.svg')}" alt="">
<img class="ce-uploads-icon" src="{f:uri.resource(path: 'EXT:{{EXTENSION_KEY}}/Resources/Public/Icons/FileIcons/{file.extension}.svg')}" alt="" loading="lazy">
</f:if>
<f:if condition="{data.uploads_type} == 2">
<f:if condition="{file.type} > 1">
Expand All @@ -21,7 +21,7 @@
</a>
</f:then>
<f:else>
<img class="ce-uploads-icon" src="{f:uri.resource(path: 'EXT:{{EXTENSION_KEY}}/Resources/Public/Icons/FileIcons/{file.extension}.svg')}" alt="">
<img class="ce-uploads-icon" src="{f:uri.resource(path: 'EXT:{{EXTENSION_KEY}}/Resources/Public/Icons/FileIcons/{file.extension}.svg')}" alt="" loading="lazy">
</f:else>
</f:if>
</f:if>
Expand Down

0 comments on commit f391ebc

Please sign in to comment.