问题描述
我有一个巨大的Web应用程序,该应用程序在IE 6中存在内存泄漏问题.
I have a huge web app that is having issues with memory leak in IE 6.
修复5行代码示例中的内存泄漏,可以轻松解决问题.
Fixing a memory leak in a 5 line code sample that demonstrates the problem is easy.
但是,如果我有一个非常庞大的应用程序,那么应该从哪里开始呢?
But if I have a very huge application, where should a start from?
推荐答案
查看滴灌.通常,这可以避免IE内存泄漏的猜测.
Check out Drip. That usually takes the guesswork out of IE memory leaks.
如果由于某种原因Drip找不到它,请仔细查看任何可用于事件的JavaScript代码.几乎始终是浏览器中任何重大内存泄漏的根源.
If for some reason Drip doesn't find it, take a close look at any JavaScript code that works with events. That is almost always the source of any significant memory leak in a browser.
销毁带有附加处理程序的DOM元素而不先删除这些处理程序将阻止与这些处理程序相关联的内存的恢复.
Destroying a DOM element with handlers attached to it, without removing those handlers first, will prevent the memory associated with those handlers from being recovered.
这篇关于IE 6中具有内存泄漏的巨大Web应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!