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:
@@ -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 %}
|
||||||
|
Reference in New Issue
Block a user