Skip to content

Commit 6de395f

Browse files
committed
Lazy load asset grid images
1 parent 7543ada commit 6de395f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

_includes/asset.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
{%- endif -%}
1212
<div class='asset clickable left light-text compact {{ asset.tags | join: "%%" | replace: " ", "" | split: "%%" | join: " " | downcase }}' data-name="{{ asset.name }}" data-description="{{ asset.description }}">
1313
<a href="/assets/{{ include.id }}">
14-
<div id="image" style="background: url('{{thumb_base}}{{ thumb }}') center/cover; padding: 0; margin: 0; height: 190px">
15-
</div>
14+
<img src="{{ thumb_base }}{{ thumb }}" width="100%" height="190px" loading="lazy" style="object-fit: cover"/>
1615
<div style="display: grid; grid-template-columns: 70% auto; grid-gap: 0;">
1716
<div style="padding: 0px">
1817
<b>{{ asset.name }}</b>

0 commit comments

Comments
 (0)