Commit e7bfa79
authored
* [Bug Fix] Avatar: stop lazy-loading image so it is never stuck hidden
An uncached AvatarImage could get permanently stuck on the fallback. The
avatar controller hides a still-loading image with display:none (the
`hidden` class) so the fallback shows, but the image was rendered with
loading="lazy". Browsers never fetch a loading="lazy" image that
generates no box, so its `load` event never fired and showImage() was
never called — the image stayed hidden indefinitely. Cached images were
unaffected because they are already complete at connect().
Remove loading="lazy" so the image loads eagerly even while hidden; the
load/error handlers then reveal it. This matches shadcn/radix, which do
not lazy-load the avatar image.
Fixes #415
* [Bug Fix] Rebuild MCP registry for avatar_image change
1 parent b434e37 commit e7bfa79
3 files changed
Lines changed: 20 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
20 | 24 | | |
21 | 25 | | |
22 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
22 | 36 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
229 | | - | |
| 229 | + | |
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
| |||
0 commit comments