Skip to content

fix(portal): preload profile menu icons - #2224

Merged
kchaw2005 merged 9 commits into
mainfrom
kartike/preload-icons-eagerly
Aug 4, 2026
Merged

fix(portal): preload profile menu icons#2224
kchaw2005 merged 9 commits into
mainfrom
kartike/preload-icons-eagerly

Conversation

@kchaw2005

@kchaw2005 kchaw2005 commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

PR Type

  • Regular Task
  • Bug Fix
  • QA Tests

Description

Preloaded all icons. Icons inside switchers get preloaded on when their component renders.

Why

Icons in menus/switchers/lists would appear blank for some time as they wouldn't be fetched until the user opened their component. Not clean UX, so we preloaded the icons that a component uses when it mounts on its parent layout

Checklist

  • I have self-reviewed this PR.
  • I have left comments in the code for clarity.
  • I have added necessary unit tests.
  • I have updated the documentation as needed.

Preload account and switcher icons at render time so first open isn't blank, and drop the idle/hover preload machinery.

Co-authored-by: Cursor <cursoragent@cursor.com>
@kchaw2005
kchaw2005 merged commit f8eb5fd into main Aug 4, 2026
19 of 20 checks passed
@kchaw2005
kchaw2005 deleted the kartike/preload-icons-eagerly branch August 4, 2026 18:15
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.

2 participants