1
0
mirror of https://github.com/janeczku/calibre-web synced 2025-09-09 22:36:00 +00:00

feat: lazy-load images

This commit is contained in:
Oskar Manhart
2025-05-04 18:22:46 +02:00
committed by GitHub
parent 4e67a56ed2
commit 707c41c48a

View File

@@ -6,6 +6,7 @@
srcset="{{ srcset }}"
src="{{ url_for('web.get_cover', book_id=book.id, resolution='og', c=book|last_modified) }}"
alt="{{ image_alt }}"
loading="lazy"
/>
{%- endmacro %}
@@ -16,5 +17,6 @@
srcset="{{ srcset }}"
src="{{ url_for('web.get_series_cover', series_id=series.id, resolution='og', c='day'|cache_timestamp) }}"
alt="{{ title }}"
loading="lazy"
/>
{%- endmacro %}