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:
co-authored by
coderabbitai[bot]
Zach
parent
bff20c5219
commit
2c26bd26fd
+5
-1
@@ -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" />
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user