1
0
mirror of https://github.com/janeczku/calibre-web synced 2025-09-10 06:46:01 +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 }}" srcset="{{ srcset }}"
src="{{ url_for('web.get_cover', book_id=book.id, resolution='og', c=book|last_modified) }}" src="{{ url_for('web.get_cover', book_id=book.id, resolution='og', c=book|last_modified) }}"
alt="{{ image_alt }}" alt="{{ image_alt }}"
loading="lazy"
/> />
{%- endmacro %} {%- endmacro %}
@@ -16,5 +17,6 @@
srcset="{{ srcset }}" srcset="{{ srcset }}"
src="{{ url_for('web.get_series_cover', series_id=series.id, resolution='og', c='day'|cache_timestamp) }}" src="{{ url_for('web.get_series_cover', series_id=series.id, resolution='og', c='day'|cache_timestamp) }}"
alt="{{ title }}" alt="{{ title }}"
loading="lazy"
/> />
{%- endmacro %} {%- endmacro %}