I got to know the mechanism of JavaScript garbage collection reading this one, and that is Mark and Sweep.
So, I just really wonder when it works, what makes it work! From some of articles, I got to know this works automatically, but I wonder some of conditions or triggers to work it.
Does it just operate periodically? Or does it work automatically when there are certain conditions, such as when moving to another tab?