Makes Reveal, deferred images and the first row work from the HTML
Reveal content is visible in the HTML and only content below the viewport hides after hydration. Deferred photos get a noscript twin, and the first row of the portfolio loads eagerly per column count. Some old tests still expect the former behaviour; they are rewritten next, so this commit's test run is not fully green. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -105,11 +105,12 @@ export default function PortfolioGallery({
|
||||
<Box ref={grid}>
|
||||
<PortfolioGrid
|
||||
items={items}
|
||||
// No photo loads before the page has: the grid fades in, so
|
||||
// its photos are never the largest paint, and loading them
|
||||
// early only slowed the fonts and the intro text (measured
|
||||
// 0.80 vs 0.91 on mobile; decision 2026-10-27)
|
||||
eagerCount={0}
|
||||
// The first row loads eagerly, with preloads, because it
|
||||
// is in view and is the largest paint; later rows wait for
|
||||
// the page and for proximity. An earlier measurement
|
||||
// (2026-10-27, 0.80 eager against 0.91 deferred on mobile)
|
||||
// was made while the grid still faded in; it is repeated
|
||||
// before this is final.
|
||||
onOpen={open}
|
||||
onIntent={() => setLightboxRequested(true)}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user