You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`spaday-perspective` 0.4.3 has the same panel-count-dependent theme lag as the legacy csp-gateway frontend had before its local fix.
6
+
7
+
The `<perspective-panel>` theme path currently:
8
+
9
+
1. calls `restore({theme})` for the element chrome and active panel;
10
+
2. calls `saveWorkspace()` to enumerate panels;
11
+
3. loops over every panel and awaits `restore({theme}, {panel})` sequentially.
12
+
13
+
Each restore restyles a Perspective plugin, so total latency grows with the number of tabs. Browser profiling against Perspective 5.2 showed a visibly delayed transition with eight panels. In one run, sequential completion took about 300 ms; issuing the panel restores with `Promise.all()` reduced it to about 150 ms. Exact timings vary with panel contents and render state.
14
+
15
+
Upstream action:
16
+
17
+
- Keep the initial bare `restore({theme})`; it updates element chrome and the active panel.
18
+
- After `saveWorkspace()`, restore background panel themes concurrently with `Promise.all()` rather than a serial `for ... of` loop.
19
+
- Verify concurrent restores remain safe while live tables update and while a layout replacement is queued.
20
+
- Add a multi-panel browser test that checks all saved panel themes after toggling the global theme.
0 commit comments