Avoiding JavaScript Memory Leaks

by Tom

The always outstanding reference IBM Developer Works offers some steps you can take to avoid JavaScript memory leaks. This article also offers a terrific general explanation of memory leaks, also known as circular references, in your JavaScript apps. Closures are covered in some detail, as are methods of avoiding memory leaks. There is plenty of sample code to illustrate common memory leak patterns and relatively easy ways to deal with them.

By the way, just in case you’re not aware, if you are using Firefox you should check out the Leak Monitor extension to detect places where your JavaScript may be leaking.

If you found this helpful or interesting, please share it!

{ 1 comment… read it below or add one }

Abdullah

any good tool for IE apart from drip or sieve?

Leave a Comment

Previous post:

Next post: