Our site uses an iframe to display content and when the user clicks on an item in our nav bar the parent page loads the new url in the iframe. We have noticed the memory has been growing every time the iframe loads a page, even if it is just loading the same page over and over. Much of the increase is garbage collected but some remains which means if the user navigates around for a while the memory usage can get pretty high. I have been struggling with this issue for a couple days now. I have searched and found a few workarounds such as deleting the iframe and creating a new one every time the user navigates but nothing has improved the problem so far. In order to make sure it wasn't something we were doing wrong in our code I created a very simple sample to demonstrate the issue.The sample loads an iframe every time you click a button with a very simple page that includes the js files for the kendo libraries we use. In this example the memory grows slowly but steadily. Obviously with a more complex page it will grow faster. I left some commented code in there with one of the workarounds I tried.
Any help would be greatly appreciated.
Please share how the issue was resolved.