title: What is the minimum "acceptable" delay for a local storage in an interval loop (for "auto-saving")?
body: <p>I'm working on a web app with an auto-saving feature.
  I use something like that for managing backup:</p>
  
  <pre><code>setInterval(function(){ 
      localStorage.setItem('save', data) 
  }, TIME_INTERVAL)
  </code></pre>
  
  <p>Each save replace the previous one.</p>
  
  <p>Can you tell me a reasonable value for <em>TIME_INTERVAL</em>? </p>
  
  <p>I don't really know the impact on the client side. I'm looking for technical answers, in the user point of view, a permanent save is the best for him but a delay can be tolerated if needed. 
  I even did some tests with <code>TIME_INTERVAL = 1</code> and didn't see any issues on my browser but this seems insane to write data on the client-side every millisecond... What's do you think? Should I save the data every second or this is a really bad idea?</p>