From 8c0a81cba616ffe255cf5812f8e23175ee41faa7 Mon Sep 17 00:00:00 2001 From: Butter Cat Date: Sun, 22 Feb 2026 11:03:28 -0500 Subject: [PATCH] Lazy load post images --- templates/utils.html | 33 +-------------------------------- 1 file changed, 1 insertion(+), 32 deletions(-) diff --git a/templates/utils.html b/templates/utils.html index 4cee9798..916b9608 100644 --- a/templates/utils.html +++ b/templates/utils.html @@ -104,20 +104,7 @@

{% if post.post_type == "image" %}
- {% if post.media.height == 0 || post.media.width == 0 %} - Post image - {% else %} - - - - Post image - - - {% endif %}
{% else if post.post_type == "video" || post.post_type == "gif" %} @@ -253,20 +240,7 @@

{% if (prefs.layout.is_empty() || prefs.layout == "card") && post.post_type == "image" %}
- {% if post.media.height == 0 || post.media.width == 0 %} - Post image - {% else %} - - - - Post image - - - {% endif %}
{% else if (prefs.layout.is_empty() || prefs.layout == "card") && (post.post_type == "gif" || post.post_type == "video") %} @@ -292,12 +266,7 @@

{% else %}
- - - - Thumbnail - - + Thumbnail
{% endif %} {% if post.post_type == "link" %}{{ post.domain }}{% else %}{{ post.post_type }}{% endif %}