How JavaScript Garbage Collection Works
If you’ve ever written JavaScript, you’ve never had to write code that says “delete this object, I’m done with it.” That’s because there’s a process called garbage collection running in the background to save you the hassle. Most of the time this process works smoothly and invisibly. But it can also cause an app to suddenly start stuttering for no obvious reason if you don’t manage it effectively. This post will give you the tools to do just that.