Repository navigation
Commit 39070c2
Drop the service worker warm-up now that listeners register in time
document_start pinged the worker with { contentScriptQuery: 'warmup' } so
it would be awake by the time document_end connected. Nothing ever
handled that message - there is no listener for it anywhere - so it always
rejected and the rejection was swallowed. Booting the worker was the whole
point.
That was a workaround for listeners registering after an await, which is
fixed: every backend now registers during the worker's initial
synchronous run, so the connection that wakes it is routed rather than
dropped. The warm-up no longer has a job.
Measured against a worker left idle for 60s, twice, with the warm-up gone:
the theme still applies pre-paint, stored preview marks come back 252-253ms
after load, and a preview click writes through and persists. Both the read
and write paths survive a cold wake with nothing pre-booting the worker.
Refs #301
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent 60e2426 commit 39070c2
2 files changed
Lines changed: 3 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | 5 | | |
12 | 6 | | |
13 | 7 | | |
| |||
30 | 24 | | |
31 | 25 | | |
32 | 26 | | |
33 | | - | |
34 | 27 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
| 48 | + | |
55 | 49 | | |
56 | 50 | | |
57 | 51 | | |
| |||
0 commit comments