perf(feed): intrinsic dimensions + async decode on video thumbnails

Give the feed card thumbnail width/height (16:9) so the browser reserves the
aspect box before load (CLS), and decoding=async so image decode never blocks
the main thread. loading=lazy was already set.
This commit is contained in:
npeter83 2026-07-04 19:13:11 +02:00
parent 92eed1ec9b
commit 35c3d0f2cb

View file

@ -153,6 +153,9 @@ function Thumb({
src={video.thumbnail_url}
alt=""
loading="lazy"
decoding="async"
width={1280}
height={720}
className="w-full h-full object-cover"
/>
) : (