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