Is it possible to use iframes in IE without memory leaks?

后端 未结 4 964
野的像风
野的像风 2020-12-05 03:13

All versions of IE (including 10) appear to hold on to a significant amount of memory allocated by iframes until window.top.unload occurs. This creates quite the challenge f

4条回答
  •  悲哀的现实
    2020-12-05 03:16

    You are missing one important step: After setting the src to 'about:blank', you need to listen to the load of 'about:blank', and only then remove your iFrame.

提交回复
热议问题