Skip to content

perf: optimize homepage profile image#41

Merged
corwinm merged 2 commits into
mainfrom
perf/profile-image-delivery
Jul 13, 2026
Merged

perf: optimize homepage profile image#41
corwinm merged 2 commits into
mainfrom
perf/profile-image-delivery

Conversation

@corwinm

@corwinm corwinm commented Jul 13, 2026

Copy link
Copy Markdown
Owner

Summary

  • add a centered 448×448 derivative for the homepage’s 224×224 profile photo
  • reduce the high-priority profile-image transfer from 317,897 bytes to 39,986 bytes
  • add the optimized image path as publicProfile.displayImagePath and consume it from the homepage component
  • keep the larger publicProfile.imagePath unchanged for Open Graph and JSON-LD metadata
  • add a regression test for the display asset, existing rendering attributes, metadata source, and a 100 KB transfer budget

TDD

  • RED: the focused test failed because the optimized asset and component reference did not exist
  • GREEN: all three focused profile-image delivery tests pass

Validation

  • pnpm lint — passed with 0 warnings and 0 errors
  • pnpm typecheck — passed
  • pnpm test — 43/43 passed across 12 files
  • pnpm build — passed
  • git diff --check — passed
  • production SSR uses /profile-2025-448.jpg at 39,986 bytes
  • production Open Graph and JSON-LD metadata still use /profile-2025.jpg
  • browser verification confirmed the circular crop, image quality, dimensions, and layout remain intact
  • side-by-side image inspection found matching framing with no visible compression artifacts
  • independent pre-commit review passed with no security concerns or logic errors

Scope

The original profile image remains unchanged and available for metadata/social previews. The separate Netflix resume worktree and its uncommitted files were not modified.

@vercel

vercel Bot commented Jul 13, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
corwinm-remix Ready Ready Preview, Comment Jul 13, 2026 9:18pm

@corwinm
corwinm merged commit 7421793 into main Jul 13, 2026
3 checks passed
@corwinm
corwinm deleted the perf/profile-image-delivery branch July 13, 2026 21:27
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.

1 participant