Tagged articles

JavaScript

2473 articles · Page 2 of 25
FunTester
FunTester
Dec 9, 2025 · Frontend Development

Mastering Ant Design Popups: Fix Overlay Issues with getPopupContainer

This guide explains why Ant Design dropdowns, tooltips, and popovers are often hidden or misaligned, how the default rendering to document.body causes these problems, and demonstrates practical use of the getPopupContainer property to control popup mounting and eliminate visual bugs in React applications.

JavaScriptReActUI
0 likes · 7 min read
Mastering Ant Design Popups: Fix Overlay Issues with getPopupContainer
JavaScript
JavaScript
Dec 8, 2025 · Frontend Development

Why JSON.parse(JSON.stringify(obj)) Fails for Deep Cloning and Better Alternatives

The article explains the hidden pitfalls of using JSON.parse(JSON.stringify(obj)) for deep cloning in JavaScript, such as circular references, loss of special types, prototype chain, and collection handling, and introduces the native structuredClone API as a more reliable solution.

JavaScriptPrototypecircular reference
0 likes · 5 min read
Why JSON.parse(JSON.stringify(obj)) Fails for Deep Cloning and Better Alternatives
JavaScript
JavaScript
Dec 7, 2025 · Frontend Development

Unlock Faster Frontend Performance with Underused Web Workers

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.

JavaScriptPerformanceWeb Workers
0 likes · 5 min read
Unlock Faster Frontend Performance with Underused Web Workers
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Dec 6, 2025 · Frontend Development

Build Realistic 3D Trees in Three.js with ez‑Tree – Quick Installation & Usage Guide

This article introduces the ez‑Tree plugin for Three.js, showing how to install it via npm or pnpm, import and instantiate the Tree class, configure position, scale, and animation updates, and customize parameters such as tree type, branch direction, and leaf density, with a link to the GitHub repository.

3D treesGraphicsJavaScript
0 likes · 4 min read
Build Realistic 3D Trees in Three.js with ez‑Tree – Quick Installation & Usage Guide
IT Services Circle
IT Services Circle
Dec 4, 2025 · Frontend Development

Why Vite 8’s Switch to Rolldown Could Boost Your Build Speed 10‑30×

Vite 8 Beta replaces its esbuild‑Rollup pipeline with the Rust‑based Rolldown, unifying the toolchain and delivering 10‑30× faster builds, flexible code‑splitting, module‑level caching, and upcoming Full Bundle mode, while offering optional tsconfig.paths, emitDecoratorMetadata support and a low‑cost migration path for large projects.

Frontend BuildJavaScriptRolldown
0 likes · 5 min read
Why Vite 8’s Switch to Rolldown Could Boost Your Build Speed 10‑30×
BirdNest Tech Talk
BirdNest Tech Talk
Dec 4, 2025 · Frontend Development

How to Build a Real‑Time AI Agent UI with SSE and Session Replay

This article walks through the design and implementation of a visually striking, real‑time front‑end for an AI agent, explaining why Server‑Sent Events were chosen, showing Go and JavaScript code for streaming, and detailing a session‑replay feature that lets users review every agent decision step.

AI AgentAgent UIGo
0 likes · 9 min read
How to Build a Real‑Time AI Agent UI with SSE and Session Replay
JavaScript
JavaScript
Dec 3, 2025 · Frontend Development

Why IIFEs Are Obsolete: Embrace Modern ES Modules in JavaScript

This article reviews the historic use of Immediately Invoked Function Expressions (IIFE) in JavaScript, outlines their drawbacks, and demonstrates how ES6 native modules provide a cleaner, more maintainable alternative with practical migration guidance.

IIFEJavaScriptModules
0 likes · 4 min read
Why IIFEs Are Obsolete: Embrace Modern ES Modules in JavaScript
ITPUB
ITPUB
Dec 2, 2025 · Frontend Development

Why Do Some Emojis Count as Multiple Characters in JavaScript?

When debugging a web app, the author discovered that certain emojis occupy more than one character slot in JavaScript strings, revealing that emoji length varies because they are composed of multiple Unicode code points such as variation selectors and zero‑width joiners.

EmojiJavaScriptfrontend
0 likes · 4 min read
Why Do Some Emojis Count as Multiple Characters in JavaScript?
php Courses
php Courses
Dec 1, 2025 · Frontend Development

How to Accurately Calculate and Display Pagination Indexes in JavaScript

This guide explains common pagination index problems in web apps and provides a step‑by‑step JavaScript solution—including a reusable function, a full HTML component, handling of empty and dynamic data sets, best‑practice tips, and complete code examples—for seamless user navigation.

Index CalculationJavaScriptPagination
0 likes · 8 min read
How to Accurately Calculate and Display Pagination Indexes in JavaScript
JavaScript
JavaScript
Dec 1, 2025 · Frontend Development

How Vue’s Upcoming Vapor Mode Could Revolutionize Frontend Performance

The article outlines Vue’s next‑generation Vapor Mode—a compilation strategy that removes the virtual DOM, introduces fine‑grained reactive tracking, and promises faster updates, smaller bundles, and a smoother developer experience for the anticipated Vue 4.0 release.

Frontend PerformanceJavaScriptReactive System
0 likes · 5 min read
How Vue’s Upcoming Vapor Mode Could Revolutionize Frontend Performance
JavaScript
JavaScript
Nov 29, 2025 · Frontend Development

Why setTimeout Falls Short and How requestIdleCallback Keeps Your UI Smooth

The article explains how the browser’s single‑threaded nature makes long JavaScript tasks block rendering, outlines the timing issues of setTimeout, introduces requestAnimationFrame for visual sync, and shows how requestIdleCallback can safely schedule low‑priority work during idle periods.

Browser APIsJavaScriptrequestAnimationFrame
0 likes · 4 min read
Why setTimeout Falls Short and How requestIdleCallback Keeps Your UI Smooth
JavaScript
JavaScript
Nov 27, 2025 · Frontend Development

Why Facebook Limits Arrow Functions: Hidden Pitfalls Every JS Developer Should Know

Although arrow functions are concise, Facebook’s codebase deliberately restricts their use because they can cause subtle bugs related to this binding, prototype sharing, constructor usage, missing arguments, and readability, prompting developers to follow specific best‑practice guidelines.

Arrow FunctionsJavaScriptPrototype
0 likes · 4 min read
Why Facebook Limits Arrow Functions: Hidden Pitfalls Every JS Developer Should Know
JavaScript
JavaScript
Nov 25, 2025 · Fundamentals

Why === Isn’t Enough: Mastering Precise Equality with Object.is() in JavaScript

While the strict equality operator (===) works well for most cases, it fails with special values like NaN and distinguishes +0 and -0 incorrectly; JavaScript’s Object.is() method provides a more precise same‑value equality, correctly handling these edge cases and improving comparisons in Maps, Sets, and other structures.

+0 -0JavaScriptNaN
0 likes · 5 min read
Why === Isn’t Enough: Mastering Precise Equality with Object.is() in JavaScript
Goodme Frontend Team
Goodme Frontend Team
Nov 24, 2025 · Frontend Development

How React Fiber Eliminates UI Jank: A Step‑by‑Step Deep Dive

This article explains why web pages feel sluggish, how React Fiber’s interruptible asynchronous rendering solves the jank problem, and walks through progressively refined implementations—from a basic React demo to a full Fiber renderer with work‑loop scheduling, diffing, and performance optimizations.

Diff AlgorithmFiberJavaScript
0 likes · 19 min read
How React Fiber Eliminates UI Jank: A Step‑by‑Step Deep Dive
21CTO
21CTO
Nov 23, 2025 · Frontend Development

Why Bun v1.3.3 Is Redefining Full‑Stack JavaScript Development

Bun v1.3.3 transforms the JavaScript toolchain into a full‑stack platform by integrating native frontend serving, backend APIs, multi‑engine database support, and a high‑performance Redis client, while offering zero‑barrier installation across Linux, macOS, Windows, and Docker.

BunFull-StackJavaScript
0 likes · 9 min read
Why Bun v1.3.3 Is Redefining Full‑Stack JavaScript Development
JavaScript
JavaScript
Nov 21, 2025 · Frontend Development

Why IndexedDB Beats localStorage: Performance, Capacity, and Security Explained

This article examines the security risks, synchronous blocking, size limits, and query shortcomings of localStorage, then shows how IndexedDB’s asynchronous API, larger storage capacity, stronger security model, and advanced indexing make it the superior choice for modern web applications.

IndexedDBJavaScriptWeb Performance
0 likes · 6 min read
Why IndexedDB Beats localStorage: Performance, Capacity, and Security Explained
JavaScript
JavaScript
Nov 20, 2025 · Frontend Development

Why forEach Slows You Down: Faster JavaScript Loop Alternatives

This article examines the performance drawbacks and limitations of JavaScript's forEach method and presents faster alternatives such as classic for loops, for…of, functional methods like map, filter, reduce, and early‑exit methods like some and every.

JavaScriptLoopsarray methods
0 likes · 3 min read
Why forEach Slows You Down: Faster JavaScript Loop Alternatives
JavaScript
JavaScript
Nov 19, 2025 · Frontend Development

Why Top Frontend Teams Ban `export default` and Prefer Named Exports

Although `export default` offers a concise syntax, leading frontend teams and large projects now forbid it because named exports enforce consistent naming, improve tree‑shaking, simplify barrel re‑exports, and reduce refactoring pain, making codebases more maintainable and tool‑friendly.

ES ModulesJavaScriptexport default
0 likes · 5 min read
Why Top Frontend Teams Ban `export default` and Prefer Named Exports
Java Web Project
Java Web Project
Nov 18, 2025 · Backend Development

Building a Real‑Time Device Monitoring Dashboard with WebSocket and Spring Boot

This tutorial walks through creating a fire‑equipment inspection system where the backend Spring Boot service pushes abnormal device alerts via WebSocket to a Vue‑based front‑end that visualizes device status on a map, covering project setup, WebSocket configuration, client‑side handling, and end‑to‑end testing.

JavaJavaScriptReal‑time Monitoring
0 likes · 10 min read
Building a Real‑Time Device Monitoring Dashboard with WebSocket and Spring Boot
Code Mala Tang
Code Mala Tang
Nov 16, 2025 · Frontend Development

How NavigateEvent.intercept() Simplifies SPA Routing and Improves Performance

This article explains how the new NavigateEvent API replaces scattered click, submit, and popstate listeners with a single, centralized navigation handler, showing practical code examples, interception logic, cancellation signals, scroll control, and when to adopt or avoid it in modern web apps.

InterceptJavaScriptNavigation API
0 likes · 9 min read
How NavigateEvent.intercept() Simplifies SPA Routing and Improves Performance
Deepin Linux
Deepin Linux
Nov 16, 2025 · Fundamentals

Unlock Asynchronous Power: Master Callback Functions in 3 Minutes

This article explains what callback functions are, how they enable asynchronous programming across languages, demonstrates their implementation with JavaScript, C/C++, Python and HTML examples, and discusses practical use‑cases, advantages, pitfalls like callback hell, and modern alternatives such as Promises and async/await.

AsynchronousC++JavaScript
0 likes · 23 min read
Unlock Asynchronous Power: Master Callback Functions in 3 Minutes
JavaScript
JavaScript
Nov 16, 2025 · Frontend Development

Boost JavaScript Deserialization: Overcome JSON.parse Limits and Performance Bottlenecks

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 FormatDeserializationJavaScript
0 likes · 6 min read
Boost JavaScript Deserialization: Overcome JSON.parse Limits and Performance Bottlenecks
JavaScript
JavaScript
Nov 14, 2025 · Frontend Development

Can You Replace try…catch with a Go‑Style Helper in JavaScript?

This article explains how async/await simplifies asynchronous JavaScript but still forces repetitive try…catch blocks, and introduces a Go‑inspired helper function that returns an [error, data] tuple to flatten error handling, improve readability, and work seamlessly with Promise.all.

Async/AwaitCode RefactoringGo style
0 likes · 8 min read
Can You Replace try…catch with a Go‑Style Helper in JavaScript?
JavaScript
JavaScript
Nov 11, 2025 · Frontend Development

Unlock ES2025: How Pattern Matching, Pipelines, and Records Transform JavaScript

ES2025 introduces powerful new syntax—pattern matching, enhanced array destructuring, pipeline operators, native immutable Records and Tuples, a Decimal type, improved error handling, and Temporal API sugar—making JavaScript code more concise, readable, type‑safe, and performant, with practical examples and usage patterns for developers.

DecimalES2025JavaScript
0 likes · 7 min read
Unlock ES2025: How Pattern Matching, Pipelines, and Records Transform JavaScript
Open Source Tech Hub
Open Source Tech Hub
Nov 8, 2025 · Frontend Development

How to Build Real‑Time Chat in WeChat Mini‑Programs Using WebSocket

This guide explains how to implement live‑room features such as comments, joining, leaving, likes, follows, and product updates in a WeChat mini‑program by using WebSocket for full‑duplex communication, covering the handshake process, API usage, message handling logic, and heartbeat‑based reconnection strategies.

JavaScriptReal‑time communicationWeChat mini program
0 likes · 13 min read
How to Build Real‑Time Chat in WeChat Mini‑Programs Using WebSocket
Xiaolong Cloud Tech Team
Xiaolong Cloud Tech Team
Nov 7, 2025 · Frontend Development

Migrating a Product Management Backend to Micro‑Frontend with micro‑app: Lessons Learned

The article details the product‑center's shift from an iframe‑based UI to a micro‑frontend architecture, exposing the style‑isolation, sandbox, multi‑instance, routing and Sentry issues encountered with qiankun, and explains how micro‑app was adopted with concrete configuration, custom fetch, domain handling, and routing strategies to achieve a flexible, maintainable solution.

JavaScriptReActUMI
0 likes · 17 min read
Migrating a Product Management Backend to Micro‑Frontend with micro‑app: Lessons Learned
FunTester
FunTester
Nov 6, 2025 · Frontend Development

Mastering Event Bus: Decoupled Communication in Frontend Development

This article explains the concept of an Event Bus, when to apply it in frontend projects, provides a full JavaScript implementation, demonstrates its use with a login scenario, and outlines best practices and pitfalls for maintaining clean, decoupled code.

DecouplingJavaScriptPublish-Subscribe
0 likes · 11 min read
Mastering Event Bus: Decoupled Communication in Frontend Development
JavaScript
JavaScript
Nov 5, 2025 · Frontend Development

Beyond if‑else: 9 Cleaner JavaScript Patterns for Conditional Logic

This article presents nine practical JavaScript techniques—ranging from object maps and Array.includes to ternary chains, logical operators, switch statements, Proxy, functional patterns, state machines, and decorators—that replace verbose if‑else statements with cleaner, more maintainable code.

Code RefactoringConditional LogicJavaScript
0 likes · 3 min read
Beyond if‑else: 9 Cleaner JavaScript Patterns for Conditional Logic
FunTester
FunTester
Nov 4, 2025 · Frontend Development

Mastering DOM Events: From Basics to Advanced Event Flow

This article explains the fundamentals of DOM events, compares three ways to attach listeners, shows how to add and remove handlers, details event bubbling and capturing phases, and provides practical tips and common pitfalls for robust frontend interaction design.

DOMEvent PropagationJavaScript
0 likes · 8 min read
Mastering DOM Events: From Basics to Advanced Event Flow
Code Mala Tang
Code Mala Tang
Nov 1, 2025 · Frontend Development

Unlock JavaScript’s Static Initialization Blocks: Boost Your Custom Elements

This article explains JavaScript static initialization blocks, shows how they simplify shared resources and custom element setup, provides practical code examples, discusses benefits, browser compatibility issues, and offers guidance on when and how to use them effectively.

JavaScriptWeb Developmentcustom elements
0 likes · 6 min read
Unlock JavaScript’s Static Initialization Blocks: Boost Your Custom Elements
JavaScript
JavaScript
Oct 31, 2025 · Frontend Development

Why forEach Is Losing Favor: Switch to for...of for Safer Async Loops

The article explains why Array.prototype.forEach is increasingly discouraged in modern JavaScript, especially when combined with async/await, and shows how replacing it with a for...of loop resolves asynchronous pitfalls, enables proper flow‑control statements, and improves code clarity.

Async/AwaitJavaScriptarray methods
0 likes · 5 min read
Why forEach Is Losing Favor: Switch to for...of for Safer Async Loops
JavaScript
JavaScript
Oct 30, 2025 · Frontend Development

Unlock Hidden Performance: How Web Workers Supercharge Frontend Apps

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.

Frontend PerformanceJavaScriptPerformance Optimization
0 likes · 5 min read
Unlock Hidden Performance: How Web Workers Supercharge Frontend Apps
Dunmao Tech Hub
Dunmao Tech Hub
Oct 30, 2025 · Frontend Development

How to Build a WebRTC Voice Call App with PeerJS: Step‑by‑Step Guide

This guide walks through setting up a PeerJS‑based P2P voice call system, covering browser compatibility, Node environment preparation, installing and running the peerjs‑server (via npm or Docker), initializing the Peer object, handling connections, making and receiving calls, and customizing Peer IDs, with full code snippets and screenshots.

JavaScriptNode.jsP2P
0 likes · 8 min read
How to Build a WebRTC Voice Call App with PeerJS: Step‑by‑Step Guide
JavaScript
JavaScript
Oct 29, 2025 · Frontend Development

Why Traditional JavaScript for Loops Are Losing Ground—and What to Use Instead

While the classic JavaScript for loop remains fundamental, modern ECMAScript features and array methods like forEach, map, filter, and newer constructs such as for…of and the spread operator offer more readable, functional, and often more efficient alternatives, each suited to different scenarios.

JavaScriptarray methodses6
0 likes · 7 min read
Why Traditional JavaScript for Loops Are Losing Ground—and What to Use Instead
Code Mala Tang
Code Mala Tang
Oct 29, 2025 · Frontend Development

Implementing Robust Undo/Redo in Fabric.js Canvas Editors

This article explains how to add undo and redo functionality to a Fabric.js canvas editor by maintaining a history stack, provides full source code, discusses performance considerations, and compares alternative approaches such as the Command Pattern and object‑level diff snapshots.

CanvasFabric.jsJavaScript
0 likes · 8 min read
Implementing Robust Undo/Redo in Fabric.js Canvas Editors
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Oct 29, 2025 · Frontend Development

Mastering the visibilitychange Event: Detect and React to Page Visibility Changes

This article explains the native visibilitychange event of the Page Visibility API, its core properties document.hidden and document.visibilityState, provides complete JavaScript examples for listening and removing the event, discusses practical use cases such as media control, request throttling, form saving, outlines browser compatibility, and highlights limitations and best‑practice considerations.

JavaScriptPage Visibility APIWeb Performance
0 likes · 16 min read
Mastering the visibilitychange Event: Detect and React to Page Visibility Changes
JavaScript
JavaScript
Oct 28, 2025 · Frontend Development

Why Promise.allFails and How Promise.allSettled Solves It

Promise.all stops all concurrent operations when any promise rejects, leaving you unaware of which tasks succeeded; using Promise.allSettled instead lets you wait for every promise to settle, providing a detailed result array that distinguishes fulfilled values from rejected reasons, enabling resilient async workflows.

JavaScriptPromisePromise.allSettled
0 likes · 5 min read
Why Promise.allFails and How Promise.allSettled Solves It
Code Mala Tang
Code Mala Tang
Oct 27, 2025 · Frontend Development

Master Fabric.js: Build Interactive Canvas with Zoom, Snap, and Guides

This article walks through setting up Fabric.js on a web page, creating a canvas, drawing rectangles, adding zoom and pan controls, implementing object snapping and alignment guides, and provides complete source code so readers can quickly build an interactive canvas application.

CanvasFabric.jsJavaScript
0 likes · 21 min read
Master Fabric.js: Build Interactive Canvas with Zoom, Snap, and Guides
JavaScript
JavaScript
Oct 25, 2025 · Frontend Development

Replace Nested try…catch with Go‑Style Error Handling in JavaScript

This article explains how async/await simplifies asynchronous JavaScript but still requires try…catch, and shows how to adopt Go‑style error handling with a tiny helper that returns [error, data] to flatten code, reduce boilerplate, and improve readability.

Async/AwaitGo styleJavaScript
0 likes · 9 min read
Replace Nested try…catch with Go‑Style Error Handling in JavaScript
JavaScript
JavaScript
Oct 24, 2025 · Frontend Development

7 Better Alternatives to setTimeout for Reliable JavaScript Timing

While setTimeout is a common JavaScript timer API, it suffers from precision and throttling issues; this article introduces seven more reliable alternatives—including requestAnimationFrame, setInterval, requestIdleCallback, Web Workers, Promises with async/await, the Web Animations API, and Intersection Observer—detailing their advantages and usage examples.

JavaScriptPerformanceTimers
0 likes · 5 min read
7 Better Alternatives to setTimeout for Reliable JavaScript Timing
Xiaolong Cloud Tech Team
Xiaolong Cloud Tech Team
Oct 22, 2025 · Frontend Development

20 Little‑Known JavaScript APIs That 90% of Front‑End Developers Haven’t Used

This article introduces twenty under‑utilized native browser APIs—such as ResizeObserver, IntersectionObserver, Web Share, and WebCodecs—each explained with a single‑line code snippet, real‑world use cases, compatibility notes, and hidden tricks, showing how they can dramatically improve front‑end productivity and performance in 2025.

BrowserJavaScriptPerformance
0 likes · 13 min read
20 Little‑Known JavaScript APIs That 90% of Front‑End Developers Haven’t Used
JavaScript
JavaScript
Oct 17, 2025 · Frontend Development

Why IndexedDB Is the Modern Frontend Storage Powerhouse Over localStorage

While localStorage has long been the default client‑side storage for web apps, its security risks, synchronous blocking, limited capacity, and lack of advanced querying make it unsuitable for modern applications, and IndexedDB emerges as a superior, asynchronous, high‑capacity, secure, and query‑rich alternative, especially when paired with helper libraries like idb, Dexie.js, and localForage.

IndexedDBJavaScriptWeb Performance
0 likes · 5 min read
Why IndexedDB Is the Modern Frontend Storage Powerhouse Over localStorage
FunTester
FunTester
Oct 17, 2025 · Fundamentals

Why Does var Print 2 Twice? Unraveling JavaScript’s Function Scope and Hoisting

This article explains why a JavaScript function using var prints “2” twice, by detailing var’s function scope, variable hoisting, the compilation and execution phases, and contrasting the behavior with let and const, while offering practical coding recommendations to avoid common pitfalls.

JavaScriptScopeconst
0 likes · 9 min read
Why Does var Print 2 Twice? Unraveling JavaScript’s Function Scope and Hoisting
JavaScript
JavaScript
Oct 16, 2025 · Frontend Development

10 Cleaner Alternatives to if‑else in JavaScript

This guide shows how to replace verbose if‑else chains in JavaScript with cleaner techniques such as object mapping, Array.includes, ternary operators, logical shortcuts, switch statements, Proxy interception, functional patterns, state machines, and decorators, providing concise code examples for each method.

Code RefactoringConditional LogicDesign Patterns
0 likes · 3 min read
10 Cleaner Alternatives to if‑else in JavaScript
JavaScript
JavaScript
Oct 14, 2025 · Frontend Development

Boost JavaScript Async Performance by Up to 80% with New Promise Techniques

While async/await simplifies JavaScript code, it can introduce significant overhead in high‑frequency or compute‑heavy scenarios; this article introduces alternative async patterns—optimized Promise chaining, parallel Promise.all, batch processing, and pooling—that can reduce context switches and deliver performance gains of up to 80%.

Async/AwaitJavaScriptParallelism
0 likes · 5 min read
Boost JavaScript Async Performance by Up to 80% with New Promise Techniques
JavaScript
JavaScript
Oct 13, 2025 · Frontend Development

When JSON.parse Slows You Down: Faster Deserialization Strategies

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.

DeserializationJavaScriptWeb Workers
0 likes · 6 min read
When JSON.parse Slows You Down: Faster Deserialization Strategies
21CTO
21CTO
Oct 12, 2025 · Frontend Development

Are Native Browser APIs Replacing Front‑End Frameworks?

The article argues that modern browsers now provide powerful native alternatives for routing, state management, and components, reducing the need for frameworks like React, Vue, and Angular, and explains how emerging standards are reshaping front‑end development, performance, and developer ergonomics.

Browser APIsFrameworksJavaScript
0 likes · 11 min read
Are Native Browser APIs Replacing Front‑End Frameworks?
JavaScript
JavaScript
Oct 11, 2025 · Frontend Development

When to Use Arrow Functions vs Traditional Functions in JavaScript

This article explains the fundamental differences between arrow functions and traditional functions in JavaScript, outlines five common scenarios where using a regular function is required, and provides clear code examples to help developers choose the right syntax for reliable code.

Arrow FunctionsJavaScriptbest practices
0 likes · 8 min read
When to Use Arrow Functions vs Traditional Functions in JavaScript
JavaScript
JavaScript
Oct 9, 2025 · Frontend Development

Why You Should Rethink Using ‘else’ in JavaScript: Embrace Guard Clauses

Modern JavaScript style guides increasingly recommend avoiding deep if…else chains by using guard clauses and early returns, a practice that flattens code, reduces cognitive load, separates concerns, improves maintainability, and encourages expressive data structures, while still allowing simple cases where if…else remains appropriate.

Code styleEarly ReturnJavaScript
0 likes · 7 min read
Why You Should Rethink Using ‘else’ in JavaScript: Embrace Guard Clauses
JavaScript
JavaScript
Oct 6, 2025 · Frontend Development

Why Timestamp+Random Fails and How to Generate Truly Unique IDs in JavaScript

Generating unique IDs may seem trivial, but common approaches like combining Date.now() with Math.random() or using a simple counter suffer from timestamp precision limits and non‑cryptographic randomness, whereas the modern, standards‑based crypto.randomUUID() provides collision‑free, cryptographically secure identifiers across browsers and Node.js.

JavaScriptSecurityUnique ID
0 likes · 4 min read
Why Timestamp+Random Fails and How to Generate Truly Unique IDs in JavaScript
Liangxu Linux
Liangxu Linux
Oct 4, 2025 · Fundamentals

Why Is Code Called a “Script”? Uncovering the Origins and Myths

This article investigates why programmers refer to code as “scripts,” examining humorous misconceptions, historical translation quirks, the word’s original meaning, scripting language characteristics, and web‑page placement to provide a comprehensive understanding of the term’s evolution.

JavaScriptScriptScripting
0 likes · 4 min read
Why Is Code Called a “Script”? Uncovering the Origins and Myths
JavaScript
JavaScript
Oct 3, 2025 · Fundamentals

How Early Returns Can Simplify Complex If‑Else Logic in JavaScript

This article explains why deeply nested if‑else statements hurt code readability and maintainability, and demonstrates how using early return statements and the Guard Clause pattern can flatten the structure, reduce cognitive load, and improve overall code quality.

JavaScriptRefactoringcode optimization
0 likes · 5 min read
How Early Returns Can Simplify Complex If‑Else Logic in JavaScript
IT Services Circle
IT Services Circle
Oct 2, 2025 · Frontend Development

Why WebAssembly Is the Fourth Language Every Frontend Developer Needs

WebAssembly, the emerging "fourth language" for the web, extends HTML, CSS, and JavaScript by enabling high‑performance, cross‑platform binaries compiled from languages like C, C++, Rust, and Go, and its 3.0 release brings major enhancements such as 64‑bit memory, multi‑memory support, and tighter JavaScript integration.

JavaScriptWasm 3.0WebAssembly
0 likes · 7 min read
Why WebAssembly Is the Fourth Language Every Frontend Developer Needs
Radish, Keep Going!
Radish, Keep Going!
Oct 2, 2025 · Frontend Development

A Snake Game in the URL Bar: What It Shows About Modern Web Security

This article explores how a quirky snake game runs inside a browser’s address bar, the technical tricks behind it, and how recent security and API changes in modern browsers have turned such creative hacks into fragile experiments, highlighting the tension between innovation and safety.

Browser securityJavaScriptURL encoding
0 likes · 11 min read
A Snake Game in the URL Bar: What It Shows About Modern Web Security
JavaScript
JavaScript
Oct 2, 2025 · Frontend Development

Unlock Hidden Performance: How Web Workers Supercharge Frontend Apps

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.

JavaScriptPerformance OptimizationWeb Workers
0 likes · 5 min read
Unlock Hidden Performance: How Web Workers Supercharge Frontend Apps
JavaScript
JavaScript
Oct 1, 2025 · Frontend Development

Why Vue 3’s Composition API Beats Mixins: Real‑World Refactor Insights

Vue 3 replaces the once‑popular mixins pattern with the Composition API, offering explicit dependencies, clearer source tracing, better TypeScript support, and improved maintainability, as illustrated by a fintech trading platform’s migration from tangled mixins to clean, reusable composition functions.

Composition APIJavaScriptTypeScript
0 likes · 6 min read
Why Vue 3’s Composition API Beats Mixins: Real‑World Refactor Insights
Dunmao Tech Hub
Dunmao Tech Hub
Sep 30, 2025 · Frontend Development

Generate QR Codes with Logos in Vue Using qrcode & Jimp

This guide walks through generating standard and logo‑embedded QR codes in a Vue application using the qrcode and Jimp libraries, covering installation, imports, the toCanvas API, and a complete async function for compositing a logo onto the QR image.

JavaScriptJimpQR code
0 likes · 5 min read
Generate QR Codes with Logos in Vue Using qrcode & Jimp
JavaScript
JavaScript
Sep 30, 2025 · Frontend Development

Why Promise.allSettled Beats Promise.all for Robust Async JavaScript

This article explains the limitations of Promise.all, demonstrates how Promise.allSettled handles both fulfilled and rejected promises without aborting the whole operation, and shows practical code examples for building more resilient JavaScript applications.

AsynchronousJavaScriptPromise
0 likes · 5 min read
Why Promise.allSettled Beats Promise.all for Robust Async JavaScript
Architect
Architect
Sep 27, 2025 · Backend Development

How to Track Online Users with Redis Sorted Sets (zset)

This article explains how to implement an online user counting feature using Redis sorted sets, covering user identification methods, the essential zadd, zrangeByScore, zremrangeByScore, and zrem commands, along with code examples for both Java and JavaScript.

JavaScriptSorted Setonline users
0 likes · 8 min read
How to Track Online Users with Redis Sorted Sets (zset)
Ubiquitous Tech
Ubiquitous Tech
Sep 27, 2025 · Fundamentals

Building a 1024 Web Game with Spec‑Driven Development and GitHub Copilot

This article walks through Spec‑Driven Development (SDD) as a structured alternative to Vibe Coding, showing how to use GitHub Spec Kit and Copilot to create a 1024 web game by defining requirements, planning, generating tasks, and implementing code step by step.

AI‑assisted codingGitHub CopilotJavaScript
0 likes · 21 min read
Building a 1024 Web Game with Spec‑Driven Development and GitHub Copilot
JavaScript
JavaScript
Sep 27, 2025 · Frontend Development

Simplify Vue v-model with the New defineModel API in Vue 3.4

This article explains how Vue 3.4's defineModel feature eliminates the boilerplate required for custom v-model implementations, showing side‑by‑side examples of the old three‑line approach and the new single‑line declaration for reusable input components.

JavaScriptVuedefineModel
0 likes · 3 min read
Simplify Vue v-model with the New defineModel API in Vue 3.4
FunTester
FunTester
Sep 26, 2025 · Frontend Development

How to Choose the Right JavaScript Unit Testing Framework for Your Project

This guide explains why unit testing is essential, compares manual and automated testing, outlines the components of JavaScript test frameworks, and provides a step‑by‑step process for selecting the most suitable framework based on project needs and team capabilities.

JavaScriptJestmocha
0 likes · 9 min read
How to Choose the Right JavaScript Unit Testing Framework for Your Project
JavaScript
JavaScript
Sep 26, 2025 · Information Security

How ShadowRealm Can Safely Isolate Untrusted JavaScript in the Browser

ShadowRealm, a forthcoming ECMAScript standard now at TC39 Stage 3, lets developers create isolated JavaScript global environments without DOM overhead, offering a lightweight alternative to iframes and eval for securely executing third‑party code, with APIs like new ShadowRealm(), evaluate() and importValue().

ECMAScriptIsolationJavaScript
0 likes · 4 min read
How ShadowRealm Can Safely Isolate Untrusted JavaScript in the Browser
JavaScript
JavaScript
Sep 23, 2025 · Frontend Development

Transform Async/Await Error Handling with Go‑Style Patterns in JavaScript

This article explains how the traditional try...catch approach for async/await can lead to nested, hard‑to‑read code and introduces a Go‑style error‑handling helper that returns [error, data] tuples, flattening logic, reducing boilerplate, and improving readability when combined with Promise.all.

Async/AwaitGo styleJavaScript
0 likes · 8 min read
Transform Async/Await Error Handling with Go‑Style Patterns in JavaScript
FunTester
FunTester
Sep 22, 2025 · Frontend Development

Choosing the Right JavaScript Automation Testing Framework: WebDriverIO, Cypress, Playwright, and More

This article reviews the major JavaScript end‑to‑end testing frameworks—WebDriverIO, Nightwatch, Puppeteer, Playwright, TestCafe, and Cypress—explaining their technical foundations, installation steps, code examples, and the trade‑offs of compatibility, ease of use, and performance to help developers select the most suitable tool for modern web projects.

Automation TestingCypressJavaScript
0 likes · 12 min read
Choosing the Right JavaScript Automation Testing Framework: WebDriverIO, Cypress, Playwright, and More
Java Tech Enthusiast
Java Tech Enthusiast
Sep 21, 2025 · Fundamentals

How an Object Can Equal Two Different Values in JavaScript and Java

This article explains the clever trick of making a single object satisfy multiple equality checks in JavaScript using a mutable valueOf method, and shows how a similar effect can be achieved in Java through custom methods and state variables, highlighting the underlying mechanism.

JavaScriptMethod OverloadingObject Comparison
0 likes · 6 min read
How an Object Can Equal Two Different Values in JavaScript and Java
JavaScript
JavaScript
Sep 19, 2025 · Frontend Development

Unlocking ES2025: How New Syntax Transforms JavaScript Development

This article explores the groundbreaking ES2025 JavaScript features—including pattern matching, enhanced array destructuring, the pipeline operator, native Record & Tuple types, Decimal numbers, improved error handling, and Temporal API integration—showing how they simplify code, boost performance, and move the language toward functional and type‑safe programming.

DecimalES2025JavaScript
0 likes · 7 min read
Unlocking ES2025: How New Syntax Transforms JavaScript Development
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Sep 19, 2025 · Frontend Development

Boost Vue App Efficiency: A Reusable Pagination Hook Reduces 90% Repetitive Code

Learn how to eliminate repetitive pagination logic in Vue-based admin panels by using a custom usePageFetch hook that abstracts page state, loading, error handling, and caching, enabling developers to implement paginated data fetching with just a few lines of code and significantly improve development speed.

JavaScriptPaginationVue
0 likes · 11 min read
Boost Vue App Efficiency: A Reusable Pagination Hook Reduces 90% Repetitive Code
JavaScript
JavaScript
Sep 18, 2025 · Frontend Development

Why JSON.parse(JSON.stringify) Fails for Deep Cloning and Better Alternatives

This article explains the hidden pitfalls of using JSON.parse(JSON.stringify) for deep cloning in JavaScript—such as circular references, loss of special types, prototype chain erosion, and broken collections—and introduces the native structuredClone API as a more reliable solution.

JavaScriptdeep copyfrontend
0 likes · 5 min read
Why JSON.parse(JSON.stringify) Fails for Deep Cloning and Better Alternatives
JavaScript
JavaScript
Sep 17, 2025 · Frontend Development

7 Better Alternatives to setTimeout for Reliable JavaScript Timing

This article examines the shortcomings of the traditional setTimeout API and presents seven more reliable JavaScript timing techniques—including requestAnimationFrame, setInterval, requestIdleCallback, Web Workers, Promise/async‑await, the Web Animations API, and Intersection Observer—each with code examples and key advantages.

JavaScriptTimersWeb APIs
0 likes · 5 min read
7 Better Alternatives to setTimeout for Reliable JavaScript Timing
JavaScript
JavaScript
Sep 16, 2025 · Frontend Development

Boost JavaScript Async Performance: Up to 80% Faster Than async/await

This article explains why async/await can cause performance bottlenecks in JavaScript and introduces optimized Promise‑based techniques—such as chain optimization, Promise.all parallelism, batch processing, and pooling—that can improve async execution speed by up to 80% in specific scenarios.

Async/AwaitJavaScriptParallelism
0 likes · 4 min read
Boost JavaScript Async Performance: Up to 80% Faster Than async/await
JavaScript
JavaScript
Sep 14, 2025 · Frontend Development

Why IndexedDB Beats localStorage: Unlock Faster, Safer Browser Storage

This article examines the security, performance, and capacity limitations of localStorage and explains how IndexedDB offers asynchronous operations, larger storage, stronger security, and advanced query capabilities, while also recommending helper libraries to simplify its use.

IndexedDBJavaScriptSecurity
0 likes · 5 min read
Why IndexedDB Beats localStorage: Unlock Faster, Safer Browser Storage
JavaScript
JavaScript
Sep 13, 2025 · Frontend Development

How to Solve CORS Issues Easily with Fetch API and Modern JS Features

This article explains the fundamentals of CORS, reviews traditional workarounds, and demonstrates how the Fetch API, import assertions, and emerging web policies provide simpler, more secure solutions for cross‑origin requests in modern frontend development.

CORSFetch APIJavaScript
0 likes · 5 min read
How to Solve CORS Issues Easily with Fetch API and Modern JS Features
JavaScript
JavaScript
Sep 11, 2025 · Fundamentals

Mastering JavaScript’s ‘this’: The Hidden Rules Every Developer Must Know

This article demystifies JavaScript’s notoriously tricky ‘this’ keyword by exploring its dynamic binding behavior, illustrating four binding rules with clear examples, and showing how arrow functions, call/apply/bind, and constructor calls affect its value, plus practical best‑practice tips.

Arrow FunctionsJavaScriptbinding rules
0 likes · 6 min read
Mastering JavaScript’s ‘this’: The Hidden Rules Every Developer Must Know
JavaScript
JavaScript
Sep 7, 2025 · Frontend Development

Why forEach Is Losing Favor: Switch to for...of for Async JavaScript Loops

The article explains why Array.prototype.forEach is increasingly discouraged in modern JavaScript, especially with async/await, and demonstrates how replacing it with a for...of loop resolves async handling, break/continue control, and improves code clarity.

Async/AwaitJavaScriptfor...of
0 likes · 6 min read
Why forEach Is Losing Favor: Switch to for...of for Async JavaScript Loops
Instant Consumer Technology Team
Instant Consumer Technology Team
Sep 4, 2025 · Frontend Development

Latest Web Tech Updates: jQuery 4 RC, Node.js v24.7, Rspack 1.5, Next.js 15.5

This roundup highlights recent releases and announcements across the web development ecosystem, including jQuery 4.0.0 RC1, Node.js v24.7.0 with enhanced cryptography, Rspack 1.5 performance upgrades, Next.js 15.5 Turbopack beta, plus new articles on ES2025 syntax sugar, Claude Code, Node.js Type Stripping and an AI‑driven quality‑report automation.

JavaScriptNode.jsWeb Development
0 likes · 7 min read
Latest Web Tech Updates: jQuery 4 RC, Node.js v24.7, Rspack 1.5, Next.js 15.5
JavaScript
JavaScript
Sep 4, 2025 · Frontend Development

Beyond the Classic for Loop: Modern JavaScript Iteration Techniques

This article examines why the traditional JavaScript for loop is often suboptimal and explores newer, more readable and functional iteration methods such as array helpers, for...of, for...in, and the spread operator, while also outlining scenarios where the classic for loop still shines.

JavaScriptarray methodses6
0 likes · 7 min read
Beyond the Classic for Loop: Modern JavaScript Iteration Techniques
JavaScript
JavaScript
Sep 3, 2025 · Frontend Development

16 Essential JavaScript Shorthand Tricks to Write Cleaner Code

This article presents sixteen of the most useful JavaScript shorthand techniques—from ternary operators and optional chaining to object merging and dynamic property names—showing traditional versus concise forms so developers can write more compact, readable code and boost productivity.

JavaScriptcode tricksfrontend development
0 likes · 4 min read
16 Essential JavaScript Shorthand Tricks to Write Cleaner Code