Skip to content

Prioritize hero image to reduce cold-load flash#834

Merged
Wituareard merged 1 commit into
PauseAI:mainfrom
RisingOrange:hero-image-fixes
May 3, 2026
Merged

Prioritize hero image to reduce cold-load flash#834
Wituareard merged 1 commit into
PauseAI:mainfrom
RisingOrange:hero-image-fixes

Conversation

@RisingOrange

@RisingOrange RisingOrange commented May 2, 2026

Copy link
Copy Markdown
Contributor

The hero <img> is the largest visible thing above the fold on /, but in prod DevTools shows it being fetched at Low priority on cold loads, which is why it visibly pops in late after CSS, fonts, and other resources settle. fetchpriority="high" moves it earlier in the priority queue.

Cold-load flash before the fix

2026-05-03.00-52-47.mp4

Recorded via hard-refresh on a fast connection, so the gap is short. On a true cold visit (no cached resources, cold CDN edge, slower network) the gap is noticeably longer.

The flash won't disappear entirely — fetchpriority shrinks the gap, it doesn't make the image free — but on warm caches / fast networks it should be imperceptible.

@netlify

netlify Bot commented May 2, 2026

Copy link
Copy Markdown

👷 Deploy request for pauseai pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 9621f60

@RisingOrange RisingOrange marked this pull request as draft May 2, 2026 22:57
@RisingOrange RisingOrange changed the title Fix homepage hero: priority hint and Firefox Android color blend Add fetchpriority=high to hero image May 2, 2026
@RisingOrange RisingOrange changed the title Add fetchpriority=high to hero image Prioritize hero image to reduce cold-load flash May 2, 2026
The hero img is the largest element above the fold on /, but in prod
DevTools shows it fetched at Low priority on cold loads, so it pops
in late after CSS and fonts. fetchpriority=high moves it earlier in
the priority queue.
@RisingOrange RisingOrange marked this pull request as ready for review May 3, 2026 00:04
@Wituareard Wituareard merged commit 9cafdb0 into PauseAI:main May 3, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants