I have strange behavior. I use a rather heavy page (4000 nodes) designed to display a dispatch system for delivery operations. Every 30 sec I am updating using jquery operations list (3000 nodes over 4000). It works fine, but ... every time the memory of both firefox and chrome increases by 3 - 6ko. Of course, after some time the browser will crash ...
Does anyone have any ideas why? Is it a memory leak? Is javascript crashing somewhere? I checked, and after each update I have the same number of nodes, which means that the replacement is working correctly.
After each update operation, I reset several events occur: here is an example
$("#orders_list .list_table_row").hover( function(){ // mouse over $(this).children().css("background-color","#E0E0E0"); }, function(){ // mouse out $(this).children().css("background-color",""); });
Any suggestion is really welcome, tips, anything ...
I found 2 interesting links: http://www.javascriptkit.com/javatutors/closuresleak/index3.shtml and http://www.jibbering.com/faq/faq_notes/closures.html
Thanks Paul
Version 1 - added sample code and links
source share