简体   繁体   English

IE浏览器上的内存问题

[英]Memory Issue on IE browser

I have one jsp page which contains some Ajax calls. 我有一个jsp页面,其中包含一些Ajax调用。 In that Ajax call, I am loading one third party js object. 在该Ajax调用中,我正在加载一个第三方js对象。 Now when I am keep on using Ajax call, IE continuously increasing it's memory. 现在,当我继续使用Ajax调用时,IE会不断增加其内存。 But when I click on any other link which reload full page or refresh page, IE release all memory usage. 但是,当我单击重新加载整个页面或刷新页面的任何其他链接时,IE会释放所有内存使用情况。 It means that Third party js object taking memory on IE only(Working fine on FireFox). 这意味着第三方js对象仅在IE上占用内存(在FireFox上正常工作)。

How can I delete that object from browser once it's not in use? 一旦不使用该对象,如何从浏览器中删除该对象? I have try 我尝试了

delete obj;

which not work for me because I don't know the structure of third party js object. 这对我不起作用,因为我不知道第三方js对象的结构。 Is there any way to execute only browser refresh functionality without refreshing browser? 有什么方法可以只执行浏览器刷新功能而无需刷新浏览器? Or any other suggestion to resolved this issue? 还是有其他解决此问题的建议?

Thanks in advance. 提前致谢。 Navnath Navnath

Try setting obj = null , that may mark it for cleanup. 尝试设置obj = null ,这可能会将其标记为清除。

The other obvious thing to try is delete window.obj which should get rid of the whole thing. 另一个显而易见的尝试是delete window.obj ,它应该摆脱整个事情。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM