Slightly improve Paint performance
This commit is contained in:
parent
62cf9655b0
commit
f1d36e2a89
1 changed files with 1 additions and 0 deletions
|
|
@ -22,6 +22,7 @@
|
|||
height={thumb?.originalHeight}
|
||||
style:background-image={loaded ? "none" : `url('${thumb?.thumbSrc}')`}
|
||||
on:load={() => loaded = true}
|
||||
decoding="async"
|
||||
style:--aspect-ratio={thumb?.originalWidth / thumb?.originalHeight}
|
||||
/>
|
||||
{#if title}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue