perf: mark hero poster image as high fetch priority

Lighthouse flagged the LCP carousel poster for missing fetchpriority=high.
Adds a priority prop to Poster that emits the lowercase fetchpriority
attribute (untyped in this @types/react version, so React forwards it
through as a custom attribute) only on the eagerly-rendered hero image.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
nerandClaude Sonnet 4.6 committed 2026-06-06 23:08:32 +03:00
1 parent 127a02f4e1
commit 07bbb576f6
2 files changed
+35 -25

No files matched your search

@@ -40,7 +40,9 @@ const Carousel = memo(
return (
<div className='card-aspect-ratio static-aspect-ratio relative mx-auto'>
{!loaded && <Poster lazy={false} show={shows![index]} className='pointer-events-none absolute left-0 top-0' />}
{!loaded && (
<Poster lazy={false} priority show={shows![index]} className='pointer-events-none absolute left-0 top-0' />
)}
<Virtuoso
initialItemCount={1}
horizontalDirection