开发者

IE\Firefox garbage collection for localhost\external site

I've spent the last two days hunting JavaScript开发者_Go百科 memory leaks in my web project and found out the thing that confused me.

My site is built using ASP.NET MVC and heavily use JavaScript together with jQuery library and bunch of plugins.

On my local machine I refresh the page and can see how memory is constantly increasing in IE8\Firefox 3.6. But, when I publish my site to the web the memory is cleared when I refresh the page.

It's a really confusing and I wonder whether any difference in IE\Firefox garbage collection when accessing sites from different zones (Intranet, internet) or from localhost\externla location?


jQuery definitely has some memory leaks... If you use a ton of AJAX calls, here's one patch you might try to help yourself out:

Simple jQuery Ajax call leaks memory in Internet Explorer

Other than that, you'll need to provide some code showing what kinds of things your page is doing...

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜