I'm not seeing the memory usage continue to climb. It fluctuates but
doesn't climb. I added a for loop to try and make the results more
obvious...
function leakMe() {
for( var i=0; i<1000; i++ ) {
var div = document.createElement("div");
document.body.appendChild(div);
document.body.removeChild(div);
}
}
--
Brandon Aaron
On Apr 22, 3:01 am, Danny Tuppeny <[email protected]> wrote:
> Here's a small sample page that seems to leak in the same way as
> jQuery:
>
> <html><head><script type="text/javascript">
> function leakMe() {
> var div = document.createElement("div");
> document.body.appendChild(div);
> document.body.removeChild(div);}
>
> </script></head><body onload="leakMe();"></body></html>
>
> The docs for Drip say that removeChild is just a psuedo-leak and will
> be cleaned up when the page is unloaded, but that doesn't happen. If
> you set the above page to Auto-refresh in Drip, memory usage just goes
> up and up forever. If you can find a way to stop that happening in the
> small sample, I suspect fixing jQuery will be easy.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---