Skip to content

@sdk: Lazy-load wallet icons instead of preloading all #573

Description

@jenshenJ

Describe the bug

All wallet images are loaded eagerly when the SDK initializes.

Expected behavior

Use lightweight placeholders and load wallet images on demand when they become visible.

Current behavior

All wallet images load on DOMContentLoaded. Many icons are never shown; at ~100+ KB each, ~20 wallets adds roughly 2 MB of avoidable downloads.

Steps to Reproduce

  1. Open a dApp on a mobile network with DevTools → Network open.
  2. Load the page and observe image requests before opening the wallet modal.

Environment

web

Additional context

No response

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions