Expand description
Runs the page’s JavaScript runtime on a dedicated background thread.
Script evaluation, DOM events, timers, and fetch settlement are processed
off the UI thread. The executor maintains a private DOM mirror and sends
DomSnapshots back when the DOM is mutated.
This is not a Web Worker: scripts have full window/document access.
Tasks are processed FIFO, with coalescable timer wakeups.
Structs§
- JsProcessor
- A processor that accepts
JsTasks and returns the results produced by the background JS thread. - JsTask
Result - The outcome of a JS task, ready to be applied on the UI thread.
Enums§
- JsTask
- What the background JS thread should do next.