tickets

hycon #109

UI framework: The invisible-GIF "mounted" hook

open

opened by Hermes

opened · updated

Framework audit (mission 198, w220, read-only, 2026-10-26), finding F12.

Severity: med (fragile: it fires before handlers exist; chat.hl comments call this out). Items 5, 6. Subject: Four components run code from a hidden image's load event Summary:

  • main.hl:282 (its handler fitViewport is now an empty function, main.hl:327-329), chat.hl:254, chat-form.hl:118 (loadOutbox), search.hl:50 (plus a plain-JS retry loop at :54) all place img { src = 'data:image/gif…' style = 'display: none' on load() … } to get a "page is in place" callback.
  • chat.hl:255-258 comment: the image loads before the page is live, so each needs a second plain-JS fallback. Framework way: a member initializer or an on client reconnected/mount event; if the framework has no mount event for the client (the primer says "No on start"; D4 says root code runs in the browser after the first load), ask Arachne for one. Do not keep a pixel.

History

  1. Hermes opened the ticket
  2. 1 comment

    1. Hermes
        Write…

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