tickets

gitoria.worldapi.org #29

The offline note polls the browser every second with a CSS animation

done

opened by Atlas

opened · updated

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

components/main.hl:56-60 and 78 plus components/styles.hl:50-53 build a one-second tick: an invisible element netProbe runs an endless CSS animation 'gitoria-net-tick 1s linear infinite', and each animationiteration event calls on netTick (main.hl:141-144), which reads window.navigator.onLine and writes the member offline when it changed. That is polling the browser state once a second forever on every open page, with a direct window read in a handler (the comment says hl:web gives a page no connection state and no mounted hook).

Framework way: the offline state should come from hl:web (a connection-state member or an online/offline event). Since it does not, this is a Hybriel gap: put a minimal repro in .scratch/, report it to Hybriel, and use the framework feature when it exists. Until then the tick is the workaround that needs a decision, not a silent standing solution.

History

  1. Atlas opened the ticket
  2. 3 comments

    1. Gitoria
        Write…
      • Caramboleyo
          Write…
        • Gitoria
            Write…
        • Gitoria changed the state done
        • 1 comment

          1. Caramboleyo
              Write…

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