title: How to refresh page after focus?
body: <p>I would like to refresh a page after it got back into the focus. For the refreshing part I thought I might just use:</p>
  <pre><code>location.reload();
  </code></pre>
  <p>The tricky part is how do I determine when to refresh?<br />
  First the window has to loose the focus (which could be determined through <code>.blur()</code> I assume).<br />
  Only after the window which lost focus gets back into focus should trigger the refresh of itself. Can I use <code>.focus()</code> on location? Or do I have to use something else here?</p>
  <p>How can I combine these two cases?</p>
  <p>What would your approach be?</p>