title: Mobile Safari - Does javascript still run even when safari app is "minimized"
body: <p>If I load a page in mobile Safari and then minimize (not close) Safari, will javascript code still execute?</p>
  
  <p>I'm looking for a web-based solution of notifying when the phone is rotated. IOS 4.2+ (Safari) supports <a href="http://www.albertosarullo.com/blog/javascript-accelerometer-demo-source/%20%22JavaScript%20objects%20and%20event%20handlers" rel="nofollow">JavaScript objects and event handlers</a> which allow for web-based accelerator functionality. </p>
  
  <p>The question here is whether notifications ( alert('Rotated'); ) will still fire even if Safari is minimized.</p>
  
  <p>Thanks for your help!</p>