Skip to content

⚡ Bolt: [performance improvement] optimize images in ProjectsView - #185

Open
fysp11 wants to merge 1 commit into
mainfrom
bolt-projects-view-image-optimization-6836858138221276126
Open

⚡ Bolt: [performance improvement] optimize images in ProjectsView#185
fysp11 wants to merge 1 commit into
mainfrom
bolt-projects-view-image-optimization-6836858138221276126

Conversation

@fysp11

@fysp11 fysp11 commented Aug 9, 2026

Copy link
Copy Markdown
Owner

💡 What: Replaced the unsupported astro:assets <Image> component in ProjectsView.tsx with standard native <img> tags, applying appropriate performance attributes like loading="lazy" for grid view, fetchPriority="high" with loading="eager" for list view, and decoding="async". Also added required explanatory comments.
🎯 Why: Astro's <Image> component doesn't work correctly inside React UI components in this codebase. Furthermore, applying the correct native loading attributes ensures critical above-the-fold images load instantly while below-the-fold images defer their loading, reducing initial page weight. decoding="async" prevents image processing from blocking the main thread.
📊 Impact: Eliminates component errors related to astro:assets in React, improves Core Web Vitals (faster LCP) by prioritizing list items, saves bandwidth by lazy-loading grid images, and reduces main-thread blocking time.
🔬 Measurement: Verify that pnpm run check passes without warnings. Manually inspect the Network tab and Performance profiler in DevTools to confirm images load correctly according to their lazy/eager strategies and do not block the main thread.


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

* Replaced Astro Image with standard img tag
* Added loading="lazy" for below-the-fold images
* Added fetchPriority="high" for above-the-fold images
* Added decoding="async" for main thread relief

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 9, 2026

Copy link
Copy Markdown

Preview deployments for fysp11.github.io ⚡️

Status Branch preview Commit preview
✅ Ready Visit preview Visit preview

Commit: f62d9e5b5b54d02581d6c4eb010bc46b0ef48df9

Deployment ID: 016bd86e-8a9c-4b7c-8998-96d6b6430e1f

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