Skip to content

perf: lazy-load avatars and message images#1517

Merged
tlongwell-block merged 1 commit into
mainfrom
wren/lazy-avatars
Jul 6, 2026
Merged

perf: lazy-load avatars and message images#1517
tlongwell-block merged 1 commit into
mainfrom
wren/lazy-avatars

Conversation

@tlongwell-block

@tlongwell-block tlongwell-block commented Jul 5, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Lazy-load shared avatar images by default and decode them asynchronously.
  • Lazy-load inline message images and decode them asynchronously.
  • Message images already reserve stable layout space with dim, cached decoded dimensions, or the fixed 384x256 fallback box, so lazy loading should not introduce timeline jumps.

Validation

  • pnpm --dir desktop typecheck
  • pnpm --dir desktop check (passes; pre-existing warnings in tests/e2e/scrollback-buzzbugs.perf.ts and src/features/pulse/hooks.ts)
  • Commit hook ran repo formatting/checks.
  • Pre-push hook was not used for the final push because just test-unit fails in this local toolchain on buzz-db requiring rustc 1.94.0 while local rustc is 1.89.0. Desktop/web/mobile checks and desktop-tauri tests passed in the hook output.

Co-authored-by: npub12gtutshhh76rx0jx697f32f9tffd4hhp3hx58fp4x6u4uemkm7sqf8f757 <5217c5c2f7bfb4333e46d17c98a9255a52dadee18dcd43a43536b95e6776dfa0@sprout-oss.stage.blox.sqprod.co>
Signed-off-by: npub12gtutshhh76rx0jx697f32f9tffd4hhp3hx58fp4x6u4uemkm7sqf8f757 <5217c5c2f7bfb4333e46d17c98a9255a52dadee18dcd43a43536b95e6776dfa0@sprout-oss.stage.blox.sqprod.co>
@tlongwell-block tlongwell-block merged commit d09d7de into main Jul 6, 2026
85 of 91 checks passed
@tlongwell-block tlongwell-block deleted the wren/lazy-avatars branch July 6, 2026 14:25
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