Tagged articles
5 articles
Page 1 of 1
IT Services Circle
IT Services Circle
Jan 13, 2023 · Frontend Development

Why console.log Can Cause Memory Leaks in Frontend JavaScript and How to Diagnose Them

This article explains how using console.log in frontend JavaScript can create memory leaks by retaining object references, demonstrates the issue with Chrome Performance and Memory tools, compares it with code without console.log, and offers alternative debugging techniques such as debugger, logpoints, and breakpoints.

JavaScriptconsole.logmemory leak
0 likes · 7 min read
Why console.log Can Cause Memory Leaks in Frontend JavaScript and How to Diagnose Them
UC Tech Team
UC Tech Team
Oct 19, 2018 · Frontend Development

Understanding Unexpected Behaviors of console.log in Browsers

This article examines why console.log may produce surprising results in different Chrome DevTools states, explains the underlying asynchronous I/O handling, and offers practical debugging advice for developers working with JavaScript in the browser.

AsynchronousBrowserJavaScript
0 likes · 5 min read
Understanding Unexpected Behaviors of console.log in Browsers
JavaScript
JavaScript
Jan 1, 2018 · Frontend Development

Schedule a Two‑Hour Delayed Console Message with setTimeout

This concise JavaScript example demonstrates how to employ setTimeout to schedule a console.log call that prints a colored 'Good night, friends~' message after a two‑hour delay, illustrating the use of timing functions and CSS styling within console output.

JavaScriptconsole.logfrontend
0 likes · 1 min read
Schedule a Two‑Hour Delayed Console Message with setTimeout