Hi all,
I have an application that uses setInterval and setTimeout in many places. In particular, most of the setInterval is used to fetch AJAX content periodically for items that may have changed in the server...
Problem is that my browsers progressive consume the system resources as time goes on. The impression i get is that memory does not get released even with page refreshes.
I suspect it might partly have to do with uncleared timeouts.
My core question is: How mandatory is it to clear a setTimeout that has been set, and that has already fired?
I have an application that uses setInterval and setTimeout in many places. In particular, most of the setInterval is used to fetch AJAX content periodically for items that may have changed in the server...
Problem is that my browsers progressive consume the system resources as time goes on. The impression i get is that memory does not get released even with page refreshes.
I suspect it might partly have to do with uncleared timeouts.
My core question is: How mandatory is it to clear a setTimeout that has been set, and that has already fired?
Comment