From frontend-craft
Offloads expensive browser computations to web workers (including SharedWorker, worker pools, Comlink) to maintain UI responsiveness. Covers Vite/Webpack worker integration, transferable objects, and lifecycle management.
How this skill is triggered — by the user, by Claude, or both
Slash command
/frontend-craft:fec-web-workersThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Move expensive calculations off the main thread and keep input, scrolling, and animations responsive.
Move expensive calculations off the main thread and keep input, scrolling, and animations responsive.
postMessage for simple tasks, use Comlink for functional RPC, use Worker pool for a large number of parallel small tasks, and use SharedWorker for cross-Tab synchronization.terminate() when a component or page is unloaded and verify main thread improvements through Profiler, Performance panel or FPS metrics.window, document, alert() or synchronize localStorage within Worker.worker-src CSP restrictions.Computationally intensive operations are performed on a background thread, main thread input and scrolling resume smoothly, error and cancellation paths are clear, and workers are terminated on unloading without memory leaks.
npx claudepluginhub bovinphang/frontend-craftMoves CPU-intensive tasks off the main thread using Web Workers, Comlink for RPC-style communication, and worker pooling. Covers integration with React and bundlers.
Implements Web Workers and Node.js worker_threads in Bun for parallel processing, transferable objects, shared memory, and worker pools.
Optimizes React performance using React.memo for component memoization, custom prop comparisons, and useMemo for expensive computations like filtering and sorting. Use for preventing unnecessary re-renders.