Skip to content

Commit

Permalink
Add lazy loading for images in the 'Used by' page
Browse files Browse the repository at this point in the history
  • Loading branch information
andreslucena committed Dec 13, 2024
1 parent e750f9c commit 19979e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/localizable/usedby.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ description:
<div class="grid grid-cols-3 md:grid-cols-5 gap-4 md:gap-x-28 md:gap-y-16">
<% filter.each do |id, use| %>
<a class="inline-block" href="<%= use.url %>" target="_blank" rel="noopener noreferrer">
<img class="object-contain w-full h-full" src="<%= use.image %>" alt="<%= use.title %>" />
<img loading="lazy" class="object-contain w-full h-full" src="<%= use.image %>" alt="<%= use.title %>" />
</a>
<% end %>
</div>
Expand Down

0 comments on commit 19979e3

Please sign in to comment.