Connection notices wait three seconds before they show #73
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "reconnect-notice-delay"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Calvin's report (13 November 2026): switching apps on a phone and coming back to the browser shows the "Connection lost" notice for a moment, every time, although the page reconnects at once.
Change:
#client-errorand#server-errorget a CSS animation with a 3 s delay (backwardsfill), so they are invisible for the first three seconds after LiveView shows them.app.jsstarts that wait again onvisibilitychangewhen the page becomes visible. No change to the markup or to LiveView's own behaviour.Tested 14:20-14:26 UTC against the live sign-in page in headless Chrome 121 at 412x915 (mobile, touch), with this rule injected in the browser only (nothing changed on the server):
Not tested: a real phone, and a real freeze of the page by the phone's browser (the drop was simulated by closing the socket and by cutting the browser's network). Reduced-motion preference: not measured separately; the rule sets only the animation duration to near zero there, the delay stays.
Seen while testing, not changed here: after a network cut LiveView reloads the page by itself once the network is back.
🤖 Generated with Claude Code
https://claude.ai/code/session_01DnYzaTxC2GmdSpvCNyHNne