Memory leak patterns in JavaScript

Handling circular references in JavaScript applications

From the developerWorks archives

Abhijeet Bhattacharya and Kiran Shivarama Sundar

Date archived: August 24, 2017 | First published: April 24, 2007

Plugging memory leaks in JavaScript is easy enough when you know what causes them. In this article authors Kiran Sundar and Abhijeet Bhattacharya walk you through the basics of circular references in JavaScript and explain why they can cause problems in certain browsers, especially when combined with closures. After seeing some of the common memory leak patterns you should watch out for, you'll learn a variety of easy ways to work around them.

This content is no longer being updated or maintained. The full article is provided "as is" in a PDF file. Given the rapid evolution of technology, some content, steps, or illustrations may have changed.



static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=Web development
ArticleID=216569
ArticleTitle=Memory leak patterns in JavaScript
publish-date=04242007