(explore) Add lazy loading and alt attributes to images

This commit is contained in:
Viktor Lofgren 2024-12-06 00:18:26 +01:00
parent d786d79483
commit 6f72e6e0d3

View File

@ -44,7 +44,7 @@
<a href="/explore/${result.displayDomain()}" title="Show results similar to this website"><i class="fas fa-shuffle"></i></a> <a href="/explore/${result.displayDomain()}" title="Show results similar to this website"><i class="fas fa-shuffle"></i></a>
</div> </div>
<a href="${result.url().toString()}"> <a href="${result.url().toString()}">
<img class="p-2" width="800" height="600" src="/screenshot/${result.domainId()}"> <img loading="lazy" class="p-2" width="800" height="600" src="/screenshot/${result.domainId()}" alt="Screenshot of ${result.displayDomain()}" />
</a> </a>
</div> </div>
@endfor @endfor