Forum: Ruby on Rails periodically_call_remote + firefox...

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
De R. (Guest)
on 2007-02-01 04:59

   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
   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

Thank you all...
Chris H. (Guest)
on 2007-02-01 13:39
(Received via mailing list)
by chance, is the periodically_call_remote function inside the element
you are updating?



<div id="update_me">
<%= periodically call remote :url => ..., :fequency => 60, :update =>
"update_me" -%>


page.replace_html :partial => 'some_partial'

where _some_partial contains a call to periodically_call_remote
This topic is locked and can not be replied to.