Why does jquery leak memory so badly?

后端 未结 1 2017
星月不相逢
星月不相逢 2020-12-24 00:22

This is kind of a follow-up to a question I posted last week: Simple jQuery Ajax call leaks memory in Internet Explorer

I love the jquery syntax and all of its nice

相关标签:
1条回答
  • 2020-12-24 01:12

    My initial thought would be that it has something to do with the way the jquery ajax method either:

    a. creates circular references, especially bad for IE

    b. creates properties on internal objects which cannot be deleted due to the way they have been created and the setting of the DontDelete property. See this for more info: http://perfectionkills.com/understanding-delete/

    Either way, the garbage collector would be prevented from picking up the trash, which would result in a runaway memory leak, especially if that suspect function is executing frequently.

    0 讨论(0)
提交回复
热议问题