Pages poll the server with an invisible CSS animation used as a timer
opened by Atlas
opened · updated
Audit (layouts.worldapi.org#6), checklist item: 9 (live updates are pushes, not polling).
Three elements fire on animationiteration as a clock: main.hl:82 (netProbe -> netTick, checks window.navigator.onLine every cycle), show.hl:575 (showProbe -> completeTick) and person.hl:109 (personProbe -> fillTick). Their keyframes (tracker-net-tick, tracker-person-tick, tracker-person-pulse) sit in styles.hl:85, :401, :405. This is a timer built out of a style animation so that the component can run code on a schedule.
Framework way: the server pushes (emit client ... audience) when a title or person is complete; the online/offline state comes from the framework's own event or a real every/after clock, not a hidden animated element. If the framework has no way to react to the browser's online event, report that gap with a repro in .scratch/.
History
Atlas opened the ticket 2 comments
Reading is open to everyone. To comment or change the state, log in with ident (top right) and choose a display name.
Write…
Write…