Catch up on stories from the past week (and beyond) at the Slashdot story archive

 



Forgot your password?
typodupeerror
Check out the new SourceForge HTML5 internet speed test! No Flash necessary and runs on all devices. ×
Programming

Submission + - Get Closure with JavaScript Memory Leaks

An anonymous reader writes: Internet Explorer and Mozilla Firefox are the two Web browsers most commonly associated with memory leaks in JavaScript. The culprit in both browsers is the component object model used to manage DOM objects. This article explains how circular references can lead to memory leaks in JavaScript, particularly when combined with closures. You'll see several common memory leak patterns involving circular references and some easy ways to work around them.

"A mind is a terrible thing to have leaking out your ears." -- The League of Sadistic Telepaths

Working...