Javascript memory leaks after unloading a web page

前端 未结 3 1520
傲寒
傲寒 2020-12-06 07:24

I have been reading up to try to make sense of memory leaks in browsers, esp. IE. I understand that the leaks are caused by a mismatch in garbage collection algorithms betwe

3条回答
  •  独厮守ぢ
    2020-12-06 07:51

    The best thing I ever read about Javascript memory leaks was written by Doulgas Crockford.

    To answer your question, yes, the browser absolutely should unload all the objects (and most importantly, event handlers) at the appropriate time. If it did, it wouldnt have leaks :)

提交回复
热议问题