Tagged articles
2421 articles
Page 2 of 25
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.

Error HandlingGo styleJavaScript
0 likes · 9 min read
Replace Nested try…catch with Go‑Style Error Handling in JavaScript
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Oct 25, 2025 · Frontend Development

Build a Chrome Extension to Block Addictive Games in 10 Minutes

This tutorial shows how to create a lightweight Chrome extension that automatically blocks popular online game sites during prohibited hours, covering requirement analysis, project structure, manifest and background scripts, installation steps, testing, and customization options.

Browser AutomationChrome ExtensionJavaScript
0 likes · 9 min read
Build a Chrome Extension to Block Addictive Games in 10 Minutes
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.

JavaScriptTimersperformance
0 likes · 5 min read
7 Better Alternatives to setTimeout for Reliable JavaScript Timing
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.

JavaScriptVarconst
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%.

JavaScriptParallelismPromise
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.

DeserializationJSONJavaScript
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 APIsJavaScriptframeworks
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
IT Services Circle
IT Services Circle
Oct 9, 2025 · Backend Development

Why Modern JavaScript Runtimes Matter: Bun, Deno, and Edge in 2024

This guide explains how newer JavaScript runtimes like Bun, Deno, and edge platforms reshape development speed, security, and global performance, offering code examples, benchmark comparisons, and practical advice for choosing the right runtime for your projects.

BunDenoEdge Computing
0 likes · 7 min read
Why Modern JavaScript Runtimes Matter: Bun, Deno, and Edge in 2024
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.

Early ReturnJavaScriptcode style
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.

JavaScriptUnique IDcrypto.randomUUID
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.

JavaScriptLanguageScripting
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.

Code OptimizationJavaScriptguard-clauses
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.

JavaScriptWeb Workersmultithreading
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 APIJavaScriptMixins
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.

JavaScriptOnline UsersSorted Set
0 likes · 8 min read
How to Track Online Users with Redis Sorted Sets (zset)
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.

JavaScriptV-ModelVue
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.

JavaScriptJestSoftware quality
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.

Error HandlingGo 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.

CypressJavaScriptPlaywright
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
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.

JSONJavaScriptdeep copy
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.

AsyncJavaScriptTimers
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.

JavaScriptParallelismPromise
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.

IndexedDBJavaScriptWeb Performance
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.

CORSJavaScriptWeb Security
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.

JavaScriptasync/awaitfor...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
JavaScript
JavaScript
Aug 30, 2025 · Frontend Development

Why Fetch + AbortController Is Replacing Axios for Modern Web Apps

This article explains how the native fetch API, combined with the AbortController Web API, now offers zero‑dependency, cancellable, and timeout‑capable HTTP requests, effectively addressing the shortcomings that once made Axios the default choice for JavaScript developers.

AbortControllerHTTPJavaScript
0 likes · 5 min read
Why Fetch + AbortController Is Replacing Axios for Modern Web Apps
JavaScript
JavaScript
Aug 29, 2025 · Frontend Development

Why encodeURIComponent Is Obsolete: Master URLSearchParams for Safer URLs

The article explains the pitfalls of manually concatenating URLs with encodeURIComponent, introduces the modern URL and URLSearchParams APIs, and demonstrates how these objects simplify encoding, adding, modifying, and deleting query parameters safely and cleanly in both browsers and Node.js environments.

JavaScriptURLURLSearchParams
0 likes · 7 min read
Why encodeURIComponent Is Obsolete: Master URLSearchParams for Safer URLs
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Aug 29, 2025 · Frontend Development

How I Built a One‑Click HTML Table Generator for Complex Forms

A boss’s urgent request to create a multi‑row, multi‑column registration form sparked a deep dive into layout techniques, leading to the development of zyTableGenerator—a lightweight frontend tool that simplifies table creation, handles merges, styles, and exports clean HTML with a single click.

HTMLJavaScriptgrid layout
0 likes · 8 min read
How I Built a One‑Click HTML Table Generator for Complex Forms
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Aug 27, 2025 · Frontend Development

How to Build a Versatile Canvas Library with Edge Detection, Video Capture, and Particle Effects

Discover how to create a powerful, all‑in‑one Canvas toolkit that includes high‑performance edge detection, Web‑Worker‑accelerated video frame capture, particle‑based fade‑out effects, and a feature‑rich online drawing board, complete with undo/redo, layer management, and GPU‑smooth zoom and drag.

CanvasImageProcessingJavaScript
0 likes · 27 min read
How to Build a Versatile Canvas Library with Edge Detection, Video Capture, and Particle Effects
FunTester
FunTester
Aug 24, 2025 · Frontend Development

How to Build a Powerful Chrome Tab Manager Extension with FunTester

This article details the design and implementation of FunTester, a Chrome extension that provides a sidebar for comprehensive tab management, including domain grouping, theme switching, tab actions, custom right‑click menus, dynamic icons, and real‑time status updates, all illustrated with JavaScript code examples.

Browser UIChrome ExtensionContext Menu
0 likes · 10 min read
How to Build a Powerful Chrome Tab Manager Extension with FunTester
JavaScript
JavaScript
Aug 24, 2025 · Frontend Development

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

The article explains why many large‑scale front‑end teams discourage the use of JavaScript's `export default` in favor of named exports, citing benefits for naming consistency, tree‑shaking efficiency, and simpler module re‑exports in long‑term projects.

ES ModulesJavaScriptTree Shaking
0 likes · 4 min read
Why Top Frontend Teams Ban `export default` and Prefer Named Exports
Code Mala Tang
Code Mala Tang
Aug 23, 2025 · Frontend Development

Why ESM Is Overtaking CommonJS: A Deep Dive into JavaScript Modules

This article traces the history and reasons behind JavaScript’s module formats—from early AMD and UMD to Node’s CommonJS and the modern ECMAScript modules—explains migration challenges, tooling, testing nuances, and best practices for managing dual builds in contemporary projects.

CommonJSESMJavaScript
0 likes · 22 min read
Why ESM Is Overtaking CommonJS: A Deep Dive into JavaScript Modules
php Courses
php Courses
Aug 22, 2025 · Frontend Development

7 Upcoming JavaScript Features That Will Feel Familiar to PHP Developers

JavaScript is introducing seven new language features—pipe operator, property shorthand, nullish coalescing, optional chaining, tuples, pattern matching, and enums—that echo familiar PHP constructs, making data handling, default values, and conditional logic more intuitive for developers transitioning between the two languages.

JavaScriptPHPWeb Development
0 likes · 6 min read
7 Upcoming JavaScript Features That Will Feel Familiar to PHP Developers
JavaScript
JavaScript
Aug 21, 2025 · Frontend Development

Avoid UI Crashes: Mastering Promise.all vs. Promise.allSettled in JavaScript

When fetching multiple APIs concurrently, Promise.all aborts all results if any request fails, leading to poor user experience, whereas Promise.allSettled returns outcomes for every promise without rejecting, allowing graceful handling of partial failures and more robust UI rendering.

JavaScriptPromisefrontend
0 likes · 5 min read
Avoid UI Crashes: Mastering Promise.all vs. Promise.allSettled in JavaScript
JavaScript
JavaScript
Aug 19, 2025 · Frontend Development

Why Object.assign Can Break Your React Apps and How Spread Syntax Saves You

This article explains the hidden pitfalls of JavaScript's Object.assign—mutating the target object and performing only shallow copies—illustrates the bugs they can cause in modern frontend frameworks, and shows how the spread operator (or structuredClone) provides a safer, more readable alternative.

Immutable DataJavaScriptObject.assign
0 likes · 5 min read
Why Object.assign Can Break Your React Apps and How Spread Syntax Saves You
JavaScript
JavaScript
Aug 18, 2025 · Frontend Development

Unlock JavaScript’s Hidden APIs: URLSearchParams, structuredClone & Object.groupBy

Learn how modern browsers’ built-in JavaScript APIs—URLSearchParams for effortless query parsing, structuredClone for reliable deep cloning, and the new Object.groupBy method for concise array grouping—replace verbose legacy code with clean, robust one-liners, boosting readability and development speed.

Array groupingJavaScriptObject.groupBy
0 likes · 5 min read
Unlock JavaScript’s Hidden APIs: URLSearchParams, structuredClone & Object.groupBy
Laravel Tech Community
Laravel Tech Community
Aug 16, 2025 · Frontend Development

What’s New in jQuery 4.0.0 RC1? Key Changes and Slim Build Overview

jQuery 4.0.0 Release Candidate 1 introduces major updates such as dropping legacy browser support, removing deprecated APIs, adding a slim build without AJAX and animation, and improving event handling and modern browser compatibility, inviting developers to test before the final release.

JavaScriptSlim BuildWeb Development
0 likes · 3 min read
What’s New in jQuery 4.0.0 RC1? Key Changes and Slim Build Overview
Full-Stack Cultivation Path
Full-Stack Cultivation Path
Aug 1, 2025 · Frontend Development

ECharts 6.0 Released: A Complete Visual and Functional Overhaul

Version 6.0 of the open‑source ECharts library introduces a sweeping visual redesign, dynamic theme switching, intelligent scatter jitter, new chord diagrams, axis breakpoints, matrix coordinate systems, label overflow protection, upgraded mark layers, and stronger custom series, making both new and existing projects more powerful and easier to develop.

Chart LibraryData visualizationECharts
0 likes · 7 min read
ECharts 6.0 Released: A Complete Visual and Functional Overhaul
JavaScript
JavaScript
Jul 23, 2025 · Frontend Development

Master JSONP: Build a Cross‑Domain Hack Before CORS Era

This article explains the historical background of JSONP as a clever workaround for same‑origin restrictions, walks through its core concept and dialogue, provides a complete vanilla JavaScript implementation with usage examples, and discusses its limitations compared to modern CORS solutions.

CORSCross-OriginJSONP
0 likes · 10 min read
Master JSONP: Build a Cross‑Domain Hack Before CORS Era
JavaScript
JavaScript
Jul 22, 2025 · Frontend Development

How ShadowRealm Can Safely Isolate Untrusted JavaScript in Your Web Apps

This article explains the security risks of integrating third‑party scripts, why traditional isolation methods like iframes, Web Workers, and eval fall short, and introduces the upcoming ShadowRealm proposal with its lightweight, synchronous, and fully isolated JavaScript global environment and simple API.

JavaScriptShadowRealmWeb Isolation
0 likes · 4 min read
How ShadowRealm Can Safely Isolate Untrusted JavaScript in Your Web Apps
JavaScript
JavaScript
Jul 21, 2025 · Frontend Development

Can Import Maps Eliminate the Need for Build Tools?

This article explains how Import Maps let browsers understand bare module specifiers, offering a native alternative to traditional bundlers like Webpack, while still acknowledging the essential roles of build tools in transpilation, optimization, and resource processing.

Import MapsJavaScriptbuild tools
0 likes · 6 min read
Can Import Maps Eliminate the Need for Build Tools?
JavaScript
JavaScript
Jul 20, 2025 · Frontend Development

What Does an async Function Actually Return? Uncover the Promise Mechanics

This article explains how async functions always return a Promise—whether they return a plain value, an explicit Promise, throw an error, or omit a return—detailing the automatic wrapping, unwrapping, and error handling mechanisms that underpin async/await in JavaScript.

Error HandlingJavaScriptPromise
0 likes · 6 min read
What Does an async Function Actually Return? Uncover the Promise Mechanics
JavaScript
JavaScript
Jul 19, 2025 · Frontend Development

How to Reliably Send Data When Users Close a Page: sendBeacon vs fetch keepalive

This article explains why traditional fetch or XMLHttpRequest calls often fail during page unload, and demonstrates two modern browser APIs—navigator.sendBeacon and fetch with keepalive:true—that reliably transmit analytics or draft data without blocking the user experience.

JavaScriptWeb APIfetch keepalive
0 likes · 7 min read
How to Reliably Send Data When Users Close a Page: sendBeacon vs fetch keepalive
Architecture Digest
Architecture Digest
Jul 18, 2025 · Fundamentals

Can a Variable Be Both 1 and 12? Exploring Impossible JS & Java Tricks

This article examines a puzzling code condition where a variable appears to satisfy contradictory checks, presents creative JavaScript and Java solutions that exploit language quirks, and reflects on the broader learning value of such unconventional programming challenges.

JavaScriptProgramming Puzzlecode tricks
0 likes · 4 min read
Can a Variable Be Both 1 and 12? Exploring Impossible JS & Java Tricks
JavaScript
JavaScript
Jul 18, 2025 · Frontend Development

Why Does async/await Appear to Block Page Rendering? The Real Reason Explained

This article explains why using async/await inside a loop can make a page seem frozen, clarifies that await itself does not block the main thread, and shows how to replace serial awaits with Promise.all and other concurrency tools for truly non‑blocking UI updates.

JavaScriptPromiseasync/await
0 likes · 8 min read
Why Does async/await Appear to Block Page Rendering? The Real Reason Explained
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jul 18, 2025 · Frontend Development

5 Compelling Reasons to Adopt TypeScript Over JavaScript

This article explains why many large‑scale frontend projects are switching from JavaScript to TypeScript, highlighting how static typing, early error detection, type inference, better team collaboration, and IDE support improve code safety, development efficiency, and overall developer experience.

IDE integrationJavaScriptType Inference
0 likes · 7 min read
5 Compelling Reasons to Adopt TypeScript Over JavaScript
php Courses
php Courses
Jul 17, 2025 · Frontend Development

How to Dynamically Adjust PHP Page Layout Based on User Scroll Speed

This guide explains how to capture a visitor's scroll speed with JavaScript, send the data to a PHP backend, and dynamically modify page layout in real time to improve user experience, covering implementation details, performance tips, and privacy considerations.

JavaScriptPHPUX
0 likes · 6 min read
How to Dynamically Adjust PHP Page Layout Based on User Scroll Speed
JavaScript
JavaScript
Jul 16, 2025 · Frontend Development

Why JavaScript’s Date Is a Nightmare and How to Fix It

JavaScript’s native Date object is fraught with inconsistencies—ambiguous parsing, mutable instances, zero‑based months, and no built‑in formatting—leading to bugs across browsers and time zones, so developers should adopt immutable third‑party libraries like Day.js or the upcoming Temporal API for reliable date handling.

Day.jsJavaScriptTemporal
0 likes · 8 min read
Why JavaScript’s Date Is a Nightmare and How to Fix It
IT Services Circle
IT Services Circle
Jul 15, 2025 · Backend Development

How QuickJS Brings Modern JavaScript to Nginx via njs

This article explores how the new QuickJS engine enables full‑featured ES2023 JavaScript within Nginx using the njs module, allowing developers to write modern async code, import/export modules, and implement complex routing and security logic directly in the web server configuration.

JavaScriptNginxQuickJS
0 likes · 7 min read
How QuickJS Brings Modern JavaScript to Nginx via njs
JavaScript
JavaScript
Jul 14, 2025 · Frontend Development

Why Timestamp+Random Fails and How crypto.randomUUID() Guarantees True Uniqueness

This article explains common pitfalls of generating unique IDs with timestamps and Math.random(), shows why naive counters are unreliable in browsers, and demonstrates the robust, standards‑based solution using the built‑in crypto.randomUUID() method, which offers cryptographic security and near‑zero collision risk.

JavaScriptUnique IDcrypto
0 likes · 5 min read
Why Timestamp+Random Fails and How crypto.randomUUID() Guarantees True Uniqueness
JavaScript
JavaScript
Jul 13, 2025 · Frontend Development

Boost React State Updates with the New Array.prototype.with() Method

This article explains why mutating state in React or Vue breaks predictability, compares traditional immutable update techniques like map() and spread syntax, and demonstrates how the native Array.prototype.with() method provides a concise, high‑performance, immutable way to replace array elements in a single step.

ArrayJavaScriptReact
0 likes · 5 min read
Boost React State Updates with the New Array.prototype.with() Method
JavaScript
JavaScript
Jul 12, 2025 · Frontend Development

How to Build a Browser Screen Recorder with the MediaRecorder API

This guide explains how to use the native MediaRecorder API to capture screen, audio, or canvas streams in the browser, walk through a three‑step implementation—getting the stream, recording it, and handling the output—and shares best practices for compatibility, MIME types, user permissions, resource cleanup, and performance.

BrowserJavaScriptMediaRecorder
0 likes · 7 min read
How to Build a Browser Screen Recorder with the MediaRecorder API
JavaScript
JavaScript
Jul 11, 2025 · Frontend Development

Make JavaScript Polling Smarter: From setInterval to Adaptive Strategies

This article examines the inefficiencies of traditional setInterval polling and presents three intelligent alternatives—using recursive setTimeout, applying exponential backoff, and leveraging the Page Visibility API—while providing code samples and highlighting their benefits over naive polling.

JavaScriptPage Visibility APIPolling
0 likes · 6 min read
Make JavaScript Polling Smarter: From setInterval to Adaptive Strategies