Frequent AJAX-requests slow down browser
Posted on 2009-04-16
We have implemented an administration interface in AJAX, which shows a realtime "live log" of events (read from a mysql DB). The interface shows only the last e.g. 100 recent events.
i'm told that after heavy usage for about an hour (without a complete page reload, only AJAX requests), the interface/browser becomes slower and slower, sometimes even crashes.
This might be due to more and more data being accumulated (in the browser cache?) and not properly cleaned up.
(How) can i avoid this anyhow? How do other realtime-system powered by AJAX (chats?) solve this issue?
Or is it something else?