Skip to content

Commit 70a710f

Browse files
committed
Lazy-load the post detail hero image
It's below the fold for most viewports, so deferring the fetch cuts initial-paint bytes without affecting readers who scroll.
1 parent ad08b2f commit 70a710f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

templates/news/v3/detail.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545

4646
{% if object.image %}
4747
<figure class="post-detail__figure">
48-
<img src="{{ object.image.url }}" alt="" class="post-detail__image">
48+
<img src="{{ object.image.url }}" alt="" class="post-detail__image" loading="lazy">
4949
</figure>
5050
{% endif %}
5151

0 commit comments

Comments
 (0)