Files
SnowLuma/packages
DrSmoothl fc424ab740 perf(webui): stop login-waves rAF under reduced-motion; gate deliveries poll on visibility (#185)
login-waves ran its requestAnimationFrame loop unconditionally, ignoring
reduced-motion. Honour it (OS `prefers-reduced-motion` or the app's
`data-reduce-motion`): when reduced, paint a single static frame and never start
the loop; otherwise animate. React live to OS preference changes, and repaint the
static frame on resize while reduced so the field doesn't blank out. The loop is
torn down on unmount as before.

deliveries-widget polled /api/notifications/recent every 15s regardless of tab
visibility. Skip the poll while `document.hidden`, refresh immediately on
becoming visible, and add an in-flight guard so a slow request can't stack
overlapping polls.
2026-07-07 22:34:07 +08:00
..
2026-07-06 15:04:55 +08:00
2026-07-06 15:04:55 +08:00
2026-07-06 15:04:55 +08:00
2026-07-06 15:04:55 +08:00
2026-07-06 15:04:55 +08:00
2026-07-06 15:04:55 +08:00
2026-07-06 15:04:55 +08:00
2026-07-06 15:04:55 +08:00