Watch
0
0
Fork
You've already forked hyperhive
0

swarm-ui: an agent icon loads when it scrolls into view

Every card fetched its icon on page load, so a roster of 80 made 80 requests
before the first scroll. The image is lazy now; the first screen's still load at
once.
This commit is contained in:
iris 2026-11-28 02:54:37 +01:00 • committed by mara
commit 7ae1b42fd9

View file

@ -27,6 +27,9 @@ export function AgentIcon({
> >
<img <img
alt="" alt=""
// A long roster draws its icons as they scroll into view, not all at once.
loading="lazy"
decoding="async"
src={ src={
fallback fallback
? "/agent-default.svg" ? "/agent-default.svg"