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:
parent
92eed1ec9b
commit
35c3d0f2cb
1 changed files with 3 additions and 0 deletions
|
|
@ -153,6 +153,9 @@ function Thumb({
|
||||||
src={video.thumbnail_url}
|
src={video.thumbnail_url}
|
||||||
alt=""
|
alt=""
|
||||||
loading="lazy"
|
loading="lazy"
|
||||||
|
decoding="async"
|
||||||
|
width={1280}
|
||||||
|
height={720}
|
||||||
className="w-full h-full object-cover"
|
className="w-full h-full object-cover"
|
||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue