Skip to content

Instantly share code, notes, and snippets.

@eshrinivasan
Last active June 20, 2016 00:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eshrinivasan/89b76c4f270944ba7399a9a7f72bedd9 to your computer and use it in GitHub Desktop.
Save eshrinivasan/89b76c4f270944ba7399a9a7f72bedd9 to your computer and use it in GitHub Desktop.
>> Accidental global variable
>> Circular references:
javascript obj = dom object;
dom object property = javascript obj;
>> Improper use of closures
>> SetInterval
-------------------
>>Algorithms
mark and sweep algorithm
reference counting algorithm
>>How to avoid!
object = null
clearTimeout
'use strict'
http://www.ibm.com/developerworks/web/library/wa-memleak/
https://auth0.com/blog/2016/01/26/four-types-of-leaks-in-your-javascript-code-and-how-to-get-rid-of-them/
http://javascript.info/tutorial/memory-leaks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment