Hi everyone I am working on an Ajax web chat and this application is updated using timed out Ajax requests every few seconds.
Using timed Ajax requests means that the web server has to deal with a very heavy load and i would like to reduce the number of requests as much as possible.
Since the timeout is triggered in the browser i would like to know this:
Is it possible to use JavaScript to detect users that are out browser view so that i can clear the timeout for their chat update?