Tagged articles
7 articles
Page 1 of 1
JavaScript
JavaScript
Jan 12, 2026 · Frontend Development

Why IIFEs Are Obsolete: Embrace ES Modules for Cleaner JavaScript

The article reviews the historic use of Immediately Invoked Function Expressions (IIFE) in JavaScript, outlines their drawbacks, and demonstrates how modern ES6 modules provide clearer syntax, built‑in scoping, static analysis, and on‑demand loading, with migration strategies for legacy code.

ES6 ModulesIIFEmigration
0 likes · 4 min read
Why IIFEs Are Obsolete: Embrace ES Modules for Cleaner JavaScript
JavaScript
JavaScript
May 10, 2025 · Frontend Development

How Tree Shaking Trims Your JavaScript Bundle for Faster Loads

This article explains what Tree Shaking is, how it leverages the static nature of ES6 modules to eliminate dead code during bundling, and provides practical tips for developers to maximize bundle size reduction and improve web performance.

ES6 ModulesJavaScriptTree Shaking
0 likes · 9 min read
How Tree Shaking Trims Your JavaScript Bundle for Faster Loads
Sohu Tech Products
Sohu Tech Products
Jan 15, 2025 · Frontend Development

Tree Shaking in React.js: Principles, Best Practices and Applications

Tree shaking in React.js leverages ES6 static imports and named exports to eliminate dead code, reducing bundle size and improving load performance, while best practices such as modular design, avoiding side effects and dynamic imports ensure optimal dead‑code elimination across components and libraries.

Code OptimizationES6 ModulesReact.js
0 likes · 7 min read
Tree Shaking in React.js: Principles, Best Practices and Applications
JavaScript
JavaScript
Mar 8, 2022 · Backend Development

How Node.js v17.6 Enables Direct HTTP/HTTPS Module Imports

Node.js v17.6 introduces an experimental feature that lets developers import modules straight from HTTP or HTTPS URLs, closing the gap with Deno and mirroring the HTTPS import capability of ES6 modules in browsers.

DenoES6 ModulesHTTP import
0 likes · 1 min read
How Node.js v17.6 Enables Direct HTTP/HTTPS Module Imports
WeDoctor Frontend Technology
WeDoctor Frontend Technology
May 30, 2021 · Frontend Development

How Rollup’s Tree‑Shaking Eliminates Dead Code: A Deep Dive

This article explains the fundamentals and implementation details of Rollup's tree‑shaking feature, showing how unused JavaScript code is identified and removed through static ES6 module analysis, with practical code examples and visual demonstrations of variable, function, and class elimination.

Code OptimizationES6 ModulesJavaScript
0 likes · 20 min read
How Rollup’s Tree‑Shaking Eliminates Dead Code: A Deep Dive
Aotu Lab
Aotu Lab
Apr 28, 2017 · Backend Development

Why ES6 Modules in Node.js Are Harder Than You Think – An Inside Look

James M. Snell explains the fundamental differences between CommonJS and ES6 modules in Node.js, why loading and execution timing matter, the challenges of supporting both systems, and the roadmap for native ES6 module support.

Asynchronous LoadingBackend DevelopmentCommonJS
0 likes · 9 min read
Why ES6 Modules in Node.js Are Harder Than You Think – An Inside Look