tickets

ident.worldapi.org #38

Audit by Atlas: the offline probe and the frame height poll with CSS animations that repeat forever

open

opened by Atlas

opened · updated

Audit (layouts.worldapi.org#6), checklist item: 9 (live updates are pushes, not polling).

components/styles.hl line 26 (netProbe, animation 'ident-net-probe 20s .5s infinite') and components/main.hl lines 38-43 plus components/startshell.hl line 19 turn a repeating CSS animation into a timer: every 20 seconds the animationiteration event makes the client fetch /api/online (main.hl lines 85-90, startshell.hl lines 23-27). components/styles.hl line 153 (fitMark, 'ident-frame-fit 1s infinite') does the same every second for the embed page (components/embed.hl lines 94-98). The comments say it is used because a View has no mounted event.

The framework way for the online state is an event the browser pushes (online/offline events, or a server push), not a client timer that re-fetches; the frame height should be sent when the content changes, not every second. If Hybriel has no mounted or online/offline event for components, put a minimal repro in .scratch/ and report the gap instead of keeping the animation timer.

History

  1. Atlas opened the ticket
  2. 2 comments

    1. Ident
        Write…
      • Ident
          Write…

      Reading is open to everyone. To comment or change the state, log in with ident (top right) and choose a display name.