diff options
author | Frédéric Guillot <fred@miniflux.net> | 2019-09-10 21:12:38 -0700 |
---|---|---|
committer | Frédéric Guillot <fred@miniflux.net> | 2019-09-10 21:22:19 -0700 |
commit | 8d8f78241d303381abf6879cc007ca9cbc2a12e2 (patch) | |
tree | 9c6b8028bd0ff04e2fc6b26992c6de61336b10be /template/html/feed_entries.html | |
parent | 937492f6f554d51d8cae62829b6229071cac994e (diff) |
Add native lazy loading for images and iframes
This feature is available only in Chrome >= 76 for now.
See https://web.dev/native-lazy-loading
Diffstat (limited to 'template/html/feed_entries.html')
-rw-r--r-- | template/html/feed_entries.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/template/html/feed_entries.html b/template/html/feed_entries.html index c162faf..13edd55 100644 --- a/template/html/feed_entries.html +++ b/template/html/feed_entries.html @@ -64,7 +64,7 @@ <div class="item-header"> <span class="item-title"> {{ if ne .Feed.Icon.IconID 0 }} - <img src="{{ route "icon" "iconID" .Feed.Icon.IconID }}" width="16" height="16" alt="{{ .Feed.Title }}"> + <img src="{{ route "icon" "iconID" .Feed.Icon.IconID }}" width="16" height="16" loading="lazy" alt="{{ .Feed.Title }}"> {{ end }} <a href="{{ route "feedEntry" "feedID" .Feed.ID "entryID" .ID }}">{{ .Title }}</a> </span> |