Slightly improve Paint performance

This commit is contained in:
Jade Ellis 2024-09-02 19:32:34 +01:00
parent 62cf9655b0
commit f1d36e2a89
No known key found for this signature in database
GPG key ID: 8705A2A3EBF77BD2

View file

@ -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}