Skip to main content

Posts

Showing posts with the label dom-manipulation

jQuery DOM manipulation memory leak in IE

We found a serious memory leak on IE when doing DOM manipulation. Basically, we were doing this: $('#dataTableContainer').empty().html($(data).find('#dataTable')); and repeating that line once every 2 seconds. From what we were able to see, that line was leakin around 1Mb of memory every 10 seconds with the jQuery 1.7.1 (it was even worse with older versions). Are we doing something wrong? We tried several solutions already published in stackoverflow (Ex. jQuery memory leak with DOM removal ) but none worked.