Skip to content

Lumen: add explicit width and height to icon images to prevent CLS#700

Draft
adhamhaithameid wants to merge 1 commit into
mainfrom
lumen/fix-image-cls-1133227759442354122
Draft

Lumen: add explicit width and height to icon images to prevent CLS#700
adhamhaithameid wants to merge 1 commit into
mainfrom
lumen/fix-image-cls-1133227759442354122

Conversation

@adhamhaithameid

Copy link
Copy Markdown
Owner

💡 Lumen — Website Performance

Agent: Lumen | Day: Wednesday


⚡ Performance Finding

Multiple browser icon <img> elements (.l2-cta-icon and .un-browser-icon) across +page.svelte in overview, overview-editor, and uninstall routes lacked explicit width and height attributes. This introduces a Cumulative Layout Shift (CLS) risk as the browser recalculates layout when CSS loads and forces their dimensions to 22x22 or 20x20.

📊 Estimated Impact

Slight CLS improvement across landing and uninstall pages. Eliminates minor layout shifts during page rendering.

🔧 Optimisation Applied

Added width="22" height="22" to .l2-cta-icon elements and width="20" height="20" to .un-browser-icon elements.

✅ Verification

  • pnpm run check in website/ passes.
  • pnpm run build in website/ passes.
  • pnpm run test:smoke at repo root passes.

📋 Notes

Svelte component rendering respects CSS dimensions, but providing explicit HTML width/height attributes for browser icons prevents initial layout recalculation and shifts before CSS fully loads.


PR created automatically by Jules for task 1133227759442354122 started by @adhamhaithameid

Added explicit `width` and `height` attributes to `<img class="l2-cta-icon">` and `<img class="un-browser-icon">` elements across the `overview`, `overview-editor`, and `uninstall` routes. This prevents Cumulative Layout Shift (CLS) as these elements now reserve their exact space before CSS is fully loaded.
@google-labs-jules

Copy link
Copy Markdown

👋 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.

@codecov

codecov Bot commented Jul 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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