All, I have a site that uses periodically_call_remote to refresh a part of a page. The callback from the refresh merely fetch the new data and calls an rjs template to replace a div on the page via replace_html. Dead simple no other js calls... The refresh takes place every 60s. I am noticing that with firefox the memory keeps growing and growing and never seems to be garbage collected. Eventually mem runs out and firefox either dies or becomes unresponsive. Trying the same app on safari. The memory seems to remain stable and the app can stay alive a long time. I have tried several option include triming down the replaced content to almost nothing but yet seeing the same effect. Anyone out there running into this issue with firefox ?? Any clues on how to try to tackle this issue would be much appreciated... Thank you all...
on 2007-02-01 04:59
on 2007-02-01 13:39
by chance, is the periodically_call_remote function inside the element you are updating? example; view <div id="update_me"> ... <%= periodically call remote :url => ..., :fequency => 60, :update => "update_me" -%> </div> rjs page.replace_html :partial => 'some_partial' where _some_partial contains a call to periodically_call_remote