Tagged articles
Web Workers
33 articles · Page 1 of 1
This article explains how JavaScript's single‑threaded nature can freeze UI during heavy calculations and shows step‑by‑step how to offload work to Web Workers, integrate external libraries, configure build tools, and follow best practices for smooth, responsive web applications.
JavaScriptMultithreadingWeb Workers
0 likes · 10 min read

Web Workers let JavaScript run heavy computations in background threads, freeing the main UI thread, boosting multi‑core utilization, and improving memory management, which together dramatically enhance front‑end performance for tasks like data processing, image filtering, media handling, and AI inference.
JavaScriptWeb Workersperformance optimization
0 likes · 5 min read

Web Workers, an often‑overlooked browser API, let JavaScript run in background threads, freeing the main thread, leveraging multi‑core CPUs, and improving memory management, with practical use‑cases ranging from large data processing to image filtering and AI inference, dramatically boosting frontend responsiveness.
JavaScriptMultithreadingWeb Workers
0 likes · 5 min read

This article explains how JSON.parse and JSON.stringify work, outlines their performance, type, and security limitations, and presents practical strategies such as reviver functions, streaming parsers, binary formats, Web Workers, and incremental loading to achieve faster and safer JavaScript deserialization.
Binary FormatJSONJavaScript
0 likes · 6 min read

Web Workers, an often‑overlooked browser API, enable JavaScript to run heavy computations in background threads, freeing the main UI thread, boosting multi‑core utilization, improving memory management, and powering use‑cases such as big data processing, image filtering, AI inference, and encryption, dramatically enhancing frontend performance.
JavaScriptMultithreadingWeb Workers
0 likes · 5 min read

This article explains how JSON.parse and JSON.stringify work, outlines their performance, type, and security limitations, and presents advanced techniques such as reviver functions, streaming parsers, binary formats, Web Workers, and incremental loading to achieve faster and safer JavaScript deserialization.
JSONJavaScriptWeb Workers
0 likes · 6 min read

This article explains why Web Workers, an often‑overlooked browser API, can free the main thread, leverage multi‑core CPUs, and improve memory management, offering concrete scenarios and code examples to dramatically boost JavaScript performance in modern front‑end applications.
JavaScriptMultithreadingParallel Processing
0 likes · 5 min read

Discover ten practical Vue3 techniques—including shallowRef, shallowReactive, toRef/toRefs, watchPostEffect, v‑for keys, custom hooks, v‑model modifiers, keep‑alive, and Web Workers—that boost performance, simplify data handling, and enhance component development for modern frontend projects.
ReactivityVue3Web Workers
0 likes · 15 min read

This article details how a PWA camera solution was redesigned using WebRTC, off‑screen canvas, Web Workers and chunked image processing to dramatically reduce memory usage, eliminate UI lag, and boost daily capture volume by over three hundred percent.
PWAWeb WorkersWebRTC
0 likes · 23 min read

While JSON.parse() and JSON.stringify() are the default methods for JavaScript data serialization, they can become performance bottlenecks and lack support for special types, so this guide explores their limitations and presents strategies such as reviver functions, streaming parsers, binary formats, Web Workers, and incremental loading to improve deserialization efficiency.
Binary FormatJSONJavaScript
0 likes · 6 min read

This article introduces Web Workers as an HTML5 API for running background threads, explains their creation and communication mechanisms, provides a complete Fibonacci calculation demo with full source code, and discusses common pitfalls such as asynchronous postMessage behavior, data serialization, and proper thread termination.
HTML5JavaScriptMultithreading
0 likes · 9 min read

This article introduces how to use the JavaScript library transformers.js directly in the browser, leveraging Google’s built‑in window.ai models, outlines supported AI tasks, demonstrates a live demo, and provides the core implementation code for model loading, worker communication, and text generation.
Transformers.jsWeb Workersbrowser-ai
0 likes · 5 min read

This article explains why downloading large files blocks the UI in single‑threaded JavaScript, and demonstrates how to offload the heavy processing to Web Workers with practical code examples, allowing the page to remain responsive while the download proceeds.
File DownloadMultithreadingUI Blocking
0 likes · 8 min read

This article details the design evolution and performance optimization of Vivo's Agile BI cross‑tab component—from a jQuery prototype to a React‑based solution—highlighting worker‑offloaded preprocessing, virtual scrolling, and micro‑frontend integration that enable sub‑second rendering of massive data sets and match or surpass competing BI tools.
Cross TabReactVirtual Scroll
0 likes · 16 min read

This article demonstrates how to split large files into 5 MB chunks, compute MD5 hashes, and accelerate processing with Web Workers by dynamically allocating threads based on the browser's hardware concurrency, achieving up to ten‑fold speed improvements.
Frontend DevelopmentJavaScriptWeb Workers
0 likes · 13 min read

Liu Jun explains how Bilibili’s engineers replaced traditional pre‑processed SVG masks with a real‑time, browser‑based machine‑learning pipeline—using MediaPipe SelfieSegmentation, OffscreenCanvas, and Web Workers—to extract human contours and block faces in danmaku, achieving roughly 5 % CPU load on a 2020 M1 MacBook.
Face DetectionMediaPipeWeb Workers
0 likes · 9 min read

This article explains how to leverage Web Workers and OffscreenCanvas to offload heavy Excel file generation and bulk image compression from the main thread, improving UI responsiveness and reducing rendering stalls in typical backend‑admin web applications.
Excel ExportWeb Workersimage compression
0 likes · 14 min read


政采云技术Apr 26, 2022 · Frontend Development
This article explains the concepts, creation methods, communication APIs, debugging techniques, and typical use cases of ordinary Web Workers, SharedWorkers, and ServiceWorkers, illustrating how they enable multithreaded computation, cross‑tab data sharing, and offline caching to improve web performance and user experience.
Service WorkerSharedWorkerWeb Workers
0 likes · 13 min read

This article explains how to build a versatile browser message‑communication library that works across iframes, Web Workers, ServiceWorkers, BroadcastChannel and other MessagePort‑like objects, using a unified interface design, TypeScript typings, event‑driven architecture and JSON‑RPC for reliable remote procedure calls.
JSON-RPCPostMessageRPC
0 likes · 13 min read

This article explains the design of a new Chromium‑based mini‑program framework that decouples from the main client, adopts Web features, integrates Node for richer JS APIs, implements custom XWeb Workers and sandboxing, and extends to games and cross‑platform SDKs, delivering higher performance and lower memory usage.
ChromiumNode IntegrationPWA
0 likes · 13 min read


政采云技术Jan 11, 2022 · Frontend Development
This article explains JavaScript's single‑threaded nature, introduces the event loop and Web Workers, examines the Comlink library for RPC‑style multithreading, provides detailed source‑code analysis, and demonstrates practical use cases such as exporting large Excel files without blocking the UI.
ComlinkMultithreadingRPC
0 likes · 17 min read

Canvas performance hinges on the number and size of drawn shapes, so optimizing by reducing draw‑calls, using layered or clipped rendering, and offloading heavy drawing to OffscreenCanvas or Web Workers can preserve frame rates and keep the UI responsive.
CanvasJavaScriptWeb Workers
0 likes · 15 min read


ByteFEMar 9, 2021 · Frontend Development
This article explores methods to prevent user-injected JavaScript from manipulating DOM objects, including using Shadow DOM and Web Workers to create secure sandboxed environments.
DOMFrontend DevelopmentJavaScript
0 likes · 6 min read

This article explores front‑end memory challenges when rendering large numbers of map annotations, explains heap vs. stack storage, hash‑based object handling, TypedArray/DataView usage, shared memory with Web Workers, and provides performance test results and practical optimization recommendations.
Web Workersfrontendmemory optimization
0 likes · 17 min read

This article describes how to replace the JavaScript‑based JSZip decompression in a Three.js 3D viewer with a C‑based Zip library compiled to WebAssembly via Emscripten, run inside a Web Worker, and demonstrates measurable performance gains through detailed testing.
EmscriptenJSZipWeb Workers
0 likes · 10 min read

This article explains how to implement high‑efficiency H.265 live‑stream decoding on the web by compiling FFmpeg to WebAssembly, using Web Workers, custom FFmpeg I/O, and WebGL rendering to achieve smooth playback with reasonable CPU and memory usage.
FFmpegHEVCWeb Workers
0 likes · 16 min read

This article explains how Web Workers enable true multithreading in browser JavaScript, covering their API, communication methods, limitations, practical use cases, and compatibility, helping developers prevent UI blocking and improve user experience.
JavaScriptMultithreadingWeb Workers
0 likes · 9 min read

Chrome 70 introduces several developer‑focused enhancements including Windows desktop support for Progressive Web Apps, added public‑key certificate support in the Credential Management API, and the ability to assign names to Web Workers, along with other updates such as Web Bluetooth and reporting APIs.
Chrome70Credential ManagementPWA
0 likes · 5 min read

This comprehensive guide walks you through browser multi‑process architecture, the relationship between processes and threads, the rendering pipeline, Web Workers, and the intricacies of JavaScript's single‑threaded execution and event‑loop mechanisms, providing a solid knowledge framework for front‑end developers.
JavaScriptWeb Workersbrowser
0 likes · 33 min read

This article explores the history of ZIP, the challenges of exporting large Excel files from PHP front‑ends, and how using zip.js with HTML5 File API and web workers enables a half‑asynchronous, client‑side compression workflow, outlining its benefits, limitations, and practical considerations for frontend developers.
Web Workersasynchronous exportfrontend
0 likes · 12 min read

This article systematically explains how browsers use multiple processes and threads, how the rendering pipeline works, why JavaScript runs on a single thread, and how the event loop, macrotasks, microtasks, timers, and Web Workers interact to affect performance and stability.
Browser architectureWeb Workersevent-loop
0 likes · 27 min read

This article reviews various front‑end data exchange techniques—including HTTP methods, form encodings, AJAX, fetch, Server‑Sent Events, WebSocket, postMessage, and Web Workers—explaining when to use each, providing practical examples and code snippets for real‑world scenarios.
AJAXHTTPPostMessage
0 likes · 16 min read

This article explains why JavaScript’s single‑threaded nature can freeze the UI during heavy calculations like recursive Fibonacci, and demonstrates how using HTML5 Web Workers moves such tasks to background threads, keeping the interface responsive and allowing multiple workers for intensive operations.
JavaScriptMultithreadingWeb Workers
0 likes · 3 min read
