Skip to content

⚡ Bolt: Optimize ProjectsView image loading and rendering - #148

Open
fysp11 wants to merge 1 commit into
mainfrom
bolt-perf-projects-view-image-1330823062116476982
Open

⚡ Bolt: Optimize ProjectsView image loading and rendering#148
fysp11 wants to merge 1 commit into
mainfrom
bolt-perf-projects-view-image-1330823062116476982

Conversation

@fysp11

@fysp11 fysp11 commented Jul 27, 2026

Copy link
Copy Markdown
Owner

⚡ Bolt: Image loading optimization and Astro Image replacement

💡 What:
Replaced the unsupported Astro Image component with a standard HTML <img> tag in src/components/ProjectsView.tsx. Applied conditional loading strategy (loading="eager" & fetchPriority="high" for the first 4 images above the fold, and loading="lazy" for the rest). Also added decoding="async".

🎯 Why:
The Astro Image component causes bundle/rendering issues inside React .tsx files in this architecture. The lazy loading strategy improves Largest Contentful Paint (LCP) by eager loading initial viewport images, while saving bandwidth by deferring below-the-fold images. Async decoding prevents blocking the main thread.

📊 Impact:

  • Fixes potential hydration/rendering bugs.
  • Faster LCP for the initial page load.
  • Reduced initial bandwidth and memory footprint on the client.

🔬 Measurement:

  • Verify LCP metric using Lighthouse or Chrome DevTools Performance tab.
  • Check Network tab to confirm that below-the-fold images only load when scrolling down.
  • Ensure the React component mounts correctly without SSR/hydration mismatch errors.

PR created automatically by Jules for task 1330823062116476982 started by @fysp11

⚡ Bolt: Image loading optimization and Astro Image replacement

💡 What:
Replaced the unsupported Astro `Image` component with a standard HTML `<img>` tag in `src/components/ProjectsView.tsx`. Applied conditional loading strategy (`loading="eager"` & `fetchPriority="high"` for the first 4 images above the fold, and `loading="lazy"` for the rest). Also added `decoding="async"`.

🎯 Why:
The Astro `Image` component causes bundle/rendering issues inside React `.tsx` files in this architecture. The lazy loading strategy improves Largest Contentful Paint (LCP) by eager loading initial viewport images, while saving bandwidth by deferring below-the-fold images. Async decoding prevents blocking the main thread.

📊 Impact:
- Fixes potential hydration/rendering bugs.
- Faster LCP for the initial page load.
- Reduced initial bandwidth and memory footprint on the client.

🔬 Measurement:
- Verify LCP metric using Lighthouse or Chrome DevTools Performance tab.
- Check Network tab to confirm that below-the-fold images only load when scrolling down.
- Ensure the React component mounts correctly without SSR/hydration mismatch errors.

Co-authored-by: fysp11 <13081700+fysp11@users.noreply.github.com>
@kinsta

kinsta Bot commented Jul 27, 2026

Copy link
Copy Markdown

Preview deployments for fysp11.github.io ⚡️

Status Branch preview Commit preview
✅ Ready Visit preview Visit preview

Commit: 4fa741b791b3df75dffcd7fc03e02b512d526fd9

Deployment ID: e4c979ba-73a7-45f7-b644-e0b41c91e2f3

Static site name: fysp11githubio-cleb3

@google-labs-jules

Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

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