Skip to content

Commit

Permalink
Support lazy loading for svg's
Browse files Browse the repository at this point in the history
  • Loading branch information
robdekort committed Aug 7, 2024
1 parent 39e7f01 commit fb575a7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions resources/views/components/_picture.antlers.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@
{{ unless alt }}
aria-hidden="true"
{{ /unless }}
{{ if lazy }}
loading="lazy"
{{ /if }}
/>
{{ else }}
{{ foreach:formats as="format|mime_type" }}
Expand Down

0 comments on commit fb575a7

Please sign in to comment.