Install
openclaw skills install fec-web-workersUse when moving expensive browser work off the main thread with Web Workers, SharedWorker, worker pools, Comlink, transferable objects, Vite/Webpack worker integration, or UI responsiveness fixes. Do not use for lightweight synchronous work or DOM manipulation; Chinese triggers include Web Worker, 后台线程, 主线程阻塞.
openclaw skills install fec-web-workers把昂贵计算移出主线程,保持输入、滚动和动画响应。
postMessage,函数式 RPC 用 Comlink,大量并行小任务用 Worker pool,跨 Tab 同步用 SharedWorker。terminate(),并通过 Profiler、Performance 面板或 FPS 指标验证主线程改善。window、document、alert() 或同步 localStorage。worker-src CSP 限制。计算密集型操作在后台线程执行,主线程输入和滚动恢复流畅,错误与取消路径明确,Worker 在卸载时被终止且无内存泄漏。