1
0
mirror of https://github.com/janeczku/calibre-web synced 2025-11-04 17:23:18 +00:00

feat: use lazy loading for images

This commit is contained in:
Oskar Manhart
2024-08-03 14:25:15 +02:00
parent 0ff3f0f426
commit fd993b5063

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="{{ book_title }}"
loading="lazy"
/>
{%- endmacro %}