fix(lazy-loading): improve image loading performance with lazy loading and low priority fetch (#431)

* fix(lazy-loading): improve image loading performance with lazy loading and low priority fetch

* fix(styles): update intrinsic size for virtual scroller items to use CSS variable

* refactor(book-card): simplify redundant cover width binding

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

---------

Co-authored-by: Zach <zachyale@gmail.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
brios
2026-04-22 17:27:10 -04:00
committed by Zach Yale
co-authored by coderabbitai[bot] Zach
parent bff20c5219
commit 2c26bd26fd
5 changed files with 22 additions and 11 deletions
@@ -4,7 +4,11 @@
[src]="coverUrl"
class="book-cover"
alt="Cover of {{ book.metadata?.title }}"
loading="lazy"/>
width="250"
height="350"
loading="lazy"
decoding="async"
fetchpriority="low"/>
} @else {
<app-cover-placeholder class="book-cover" [title]="book.metadata?.title ?? ''" [author]="(book.metadata?.authors ?? []).join(', ')" size="sm" />
}