Tagged articles
11 articles
Page 1 of 1
FunTester
FunTester
Nov 7, 2025 · Frontend Development

Prevent Memory Leaks and Master Event Handling in JavaScript

This article explains how forgetting to remove event listeners can cause memory leaks, demonstrates proper listener cleanup, addresses closure pitfalls in loops, introduces event delegation, and provides practical debounce, throttle, naming conventions, and debugging techniques for robust frontend development.

DebounceThrottleevent delegation
0 likes · 16 min read
Prevent Memory Leaks and Master Event Handling in JavaScript
JavaScript
JavaScript
Jun 29, 2025 · Frontend Development

How to Stop Duplicate Uploads: UI Locks, Logic Flags, and Best Practices

This article explains why repeatedly clicking an upload button can cause duplicate requests, UI confusion, and data errors, and presents three robust solutions—disabling the button, using a state flag, and why debounce or throttle are unsuitable—plus essential backend safeguards.

DebounceThrottlefrontend
0 likes · 9 min read
How to Stop Duplicate Uploads: UI Locks, Logic Flags, and Best Practices
JavaScript
JavaScript
Apr 30, 2025 · Frontend Development

Mastering Debounce & Throttle: Modern JavaScript Techniques & Code Samples

This article explains traditional and modern ways to implement debounce and throttle in JavaScript, covering classic functions, decorators, requestAnimationFrame, AbortController, Web Streams API, and third‑party libraries, with code examples, performance trade‑offs, and real‑world use cases.

DebounceThrottleWeb APIs
0 likes · 6 min read
Mastering Debounce & Throttle: Modern JavaScript Techniques & Code Samples
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jun 19, 2024 · Frontend Development

Preventing Duplicate API Requests in Front‑end Development with Debounce, Throttle, Loading Locks, and Axios CancelToken

The article explains why repeated button clicks or searches cause duplicate API calls, discusses why debounce/throttle are not ideal, and presents three practical solutions—loading state locking, request cancellation with Axios CancelToken, and related code examples—to efficiently avoid redundant requests in Vue applications.

APIDebounceThrottle
0 likes · 7 min read
Preventing Duplicate API Requests in Front‑end Development with Debounce, Throttle, Loading Locks, and Axios CancelToken
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Sep 27, 2022 · Frontend Development

Understanding Closures and Currying in JavaScript: Functional Programming Essentials

This article explains how closures and currying form the core of JavaScript functional programming, demonstrates multiple curry implementations, shows practical uses such as argument caching, debounce/throttle, and lodash utilities, and highlights their relevance for front‑end developer interviews.

CurryingDebounceHigher-Order Functions
0 likes · 14 min read
Understanding Closures and Currying in JavaScript: Functional Programming Essentials
New Oriental Technology
New Oriental Technology
Jun 17, 2022 · Frontend Development

Understanding JavaScript Throttle and Debounce: Concepts, Code Examples, and Practical Applications

This article explains the fundamental differences between JavaScript throttle and debounce techniques using an intuitive real-world analogy, provides clear code implementations, compares their execution behaviors, and demonstrates practical usage scenarios with the Lodash library for optimizing frontend event handling.

DebounceJavaScriptPerformance Optimization
0 likes · 7 min read
Understanding JavaScript Throttle and Debounce: Concepts, Code Examples, and Practical Applications
Qingyun Technology Community
Qingyun Technology Community
Aug 9, 2021 · Frontend Development

Master Debounce and Throttle: When to Use Each in JavaScript

This article explains the concepts of debounce and throttle in JavaScript, illustrates their principles and typical use cases such as button submissions, search suggestions, window resize, and drag‑and‑drop, and provides practical implementations with code examples and options for immediate execution, timestamps, and timers.

DebounceJavaScriptPerformance Optimization
0 likes · 7 min read
Master Debounce and Throttle: When to Use Each in JavaScript