Skip to content

perf: prioritize profile icon loading and set constrained image layout - #134

Merged
ro80t merged 1 commit into
mainfrom
feat-image-lcp-optimization
Aug 26, 2026
Merged

perf: prioritize profile icon loading and set constrained image layout#134
ro80t merged 1 commit into
mainfrom
feat-image-lcp-optimization

Conversation

@ro80t

@ro80t ro80t commented Aug 26, 2026

Copy link
Copy Markdown
Owner

Summary

  • Set image.layout to constrained globally in the Astro config
  • Mark the profile icon image with fetchpriority="high" and loading="eager", since it's likely the page's LCP element

Test plan

  • Run npm run build / npm run dev and confirm the profile icon still renders correctly
  • Verify other images using the default Astro image layout still look correct with the new constrained layout

🤖 Generated with Claude Code

https://claude.ai/code/session_01EFbFesJytjBd612cYqmgPa

Sets image.layout to "constrained" globally and marks the profile icon
as high priority/eager loading, since it is likely the page's LCP element.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFbFesJytjBd612cYqmgPa
@github-actions

Copy link
Copy Markdown
Contributor

🔍 Preview deployed to: https://wktk.moe/pr-preview-134/

github-actions Bot added a commit that referenced this pull request Aug 26, 2026
@ro80t
ro80t merged commit 896c909 into main Aug 26, 2026
5 checks passed
@ro80t
ro80t deleted the feat-image-lcp-optimization branch August 26, 2026 09:01
github-actions Bot added a commit that referenced this pull request Aug 26, 2026
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