jQuery: The Write Less, Do More JavaScript Library

Re: Cleaning up javascript before ajax load

by Charlie Tomlinson :: Rate this Message:

Reply to Author | View in Thread

there was an interesting thread on this a few months ago. Take a look at the test run, was continuous loading of large file every 200 ms. The OP ran test for a day

Solution Thread:
http://groups.google.com/group/jquery-en/browse_thread/thread/ef024e92a41113a3/58f86e8deca2de4c?lnk=gst&q=memory+leak+ie7#58f86e8deca2de4c

Original Memory Test thread
http://groups.google.com/group/jquery-en/browse_thread/thread/f28ae96a467f84e0/c2d064c1a9ab81bc?lnk=gst&q=memory+leak+ie7#c2d064c1a9ab81bc

Veeru wrote:
Hi there
I have an ajax based page, which loads content from external page (html
+js)

So if i have a div "update_div" being updated with external content
(html+js)
Let me be more specifig

Step1: Ajax content along with js loaded into update_div from a.html

Step2: Ajax content along with js loaded into update_div from b.html

What happens to the js loaded from a.html? Is it lurking in the memory
or automatically/magically removed from the browser memory?
I am afraid of memory leaks, if the js is still lurking in memory, the
more ajax calls made, the more js is going to be held up in memory.

Unless am totally wrong; i have no idea of the mechanism happening
here. Can somebody shed some ligth?

p.s: Hope my post doest go missing this time :)

Thanks
Vru

  

 « Return to Thread: Cleaning up javascript before ajax load