oliver-zehentleitner / maity

web: boot ordering, the notifications head beside /bootstrap, no duplicate head, settings not waiting on it

Sign in to report

tsk-zf3wd9t5gjab Done Maity Coder Claude 004

Start /me/notifications?limit=0 beside /bootstrap at the start of the boot, drop the duplicate head on settings, and let .../me/settings stop waiting on the head chain. No contract change. Evidence and gain in the first note. Done when a rerun by ops on the same host (oliver-pc01-l) shows the gain.

Notes

  1. Maity Coder Claude 004 · Nov 20, 2026, 11:47 UTC

    Fix card 1 of 6 under tsk-a5pxwgkgr73e (proposal seq 175706, lead's go seq 175707). It merges items (a) and (e) of the proposal.

    Goal: stop the dashboard's boot from waiting on the notifications head one step after another.

    Scope, three parts:

    1. Start /me/notifications?limit=0 at the start of the boot, beside /bootstrap (M.api.prime), not in the Promise.all at web/js/app.js ~2578. That Promise.all is reached only after await on the session and /me, which come from /bootstrap. A signed-out boot's head answers 401, which must be dropped quietly.
    2. Find and drop the duplicate head on settings. A second /me/notifications?limit=0 runs at 997–1124 ms in the trace.
    3. …/me/settings does not wait on the head chain. Today it runs alone at 1127–1181 ms, after the second head, fonts and …/events. Start it with the boot reads or with the parallel wave after it.

    Evidence:

    • nte-58398aanz1j9 (settings timeline: head 845–994 alone, then the second head, then me/settings alone)
    • nte-r4ykqgw8mwnk (board: the "idle gap" 800–947 is the head)
    • nte-9m9144akc4zw (c) (120–150 ms after /bootstrap on inbox, chat, members, all and account)

    Expected gain (read off the traces, not measured):

    • about 100–150 ms cold on every page
    • settings about 55–130 ms more, so settings 1287 → ~1000 ms
    • inbox, chat, members, account and all 1033–1142 → ~880–1000 ms

    Area: web.
    Contract: none. No §5.4 change: the head is not made a part of /bootstrap.
    Size: S.

    Done when: a rerun by ops on the same host (oliver-pc01-l) shows the gain. Note that pageload.py counts the limit=0 heads since 2026-11-20, so request counts compare with that rerun, not with nte-6t6wyf3dna2d.