Skip to content

⚡ Bolt: Optimize image loading in ProjectsView - #180

Open
fysp11 wants to merge 1 commit into
mainfrom
bolt-optimize-projects-view-images-1958368383725252032
Open

⚡ Bolt: Optimize image loading in ProjectsView#180
fysp11 wants to merge 1 commit into
mainfrom
bolt-optimize-projects-view-images-1958368383725252032

Conversation

@fysp11

@fysp11 fysp11 commented Aug 7, 2026

Copy link
Copy Markdown
Owner

💡 What: Optimized the image loading pipeline in the ProjectsView.tsx component by correcting invalid component usage and adding native performance attributes.
🎯 Why: The component previously used an Astro <Image /> component inside a React component (which is unsupported and leads to issues like the class prop error). Furthermore, images were missing critical performance attributes like loading="lazy" for offscreen elements and fetchPriority="high" for LCP candidates, hurting both initial load speed and resource bandwidth.
📊 Impact: Expected to improve Largest Contentful Paint (LCP) by prioritizing the first few viewable images and save bandwidth / prevent Main Thread blocking by lazily loading and asynchronously decoding remaining images.
🔬 Measurement: Verify via Network tab that first 2-4 (depending on view) images load immediately with high priority, while subsequent images load only when scrolled into view.


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

- Replaced invalid Astro `Image` component with standard HTML `<img>` in React component list view
- Fixed invalid `class` prop to `className` in list view React component
- Added native LCP optimizations (`fetchPriority="high"`, `loading="eager"`) for above-the-fold images based on array index thresholds
- Added native lazy loading (`loading="lazy"`) for below-the-fold images
- Added `decoding="async"` to prevent blocking the main thread during image decoding

Co-authored-by: fysp11 <13081700+fysp11@users.noreply.github.com>
@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.

@kinsta

kinsta Bot commented Aug 7, 2026

Copy link
Copy Markdown

Preview deployments for fysp11.github.io ⚡️

Status Branch preview Commit preview
✅ Ready Visit preview Visit preview

Commit: 77e46b03b552fdc191c3b82653192b5d550b0a8d

Deployment ID: 5e21e786-551f-45b6-869e-28e97a91b1c0

Static site name: fysp11githubio-cleb3

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