Well technically not a leak, since memory usage never goes up... But I've got a small piece of code that iterates through table rows #16-n (where n is the number of rows in a table) and changes their display style from "none" to "table-row." Seems simple enough, right? But after refreshing the screen a couple of times, it starts to load more and more slowly! I can't see what's causing it, or a way around it. Any insight? Here's the code:
I've been able to isolate this as the problem with the page. If I comment out the line inside of the loop, the page does not slow down.
This happens in the latest IE6, tested on Windows 2000 and XP. It _does not happen_ in IE7.
Code:
var tbl = document.getElementById('tbl');
var trList = tbl.childNodes[1].childNodes;
var n = trList.length;
while (--n > 16) {
trList[n].style.display = "table-row";
}
This happens in the latest IE6, tested on Windows 2000 and XP. It _does not happen_ in IE7.