title: How do I detect if the user is "idle" with Javascript?
body: <p>I'm developing a "real-time" web application which sends AJAX requests to the server every 10 seconds. Obviously this is very bandwidth-intensive and I would like to know if there's any solution to this. </p>
  
  <p>My idea is checking if the user doesn't move his mouse for X seconds. How can I accomplish this?</p>