title: Alternatives to Local Storage with JavaScript
body: <p>I'm working on an app that needs to post frequently to the server using ajax, which slows down performance. As a workaround, I started testing localStorage as an alternative. The results are less than ideal, retrieving/setting localStorage frequently is super slow (something I was surprised to find), and kills performance.</p>
  
  <p>On the other-hand, I don't really want to post to the server every time an event is fired, as this has pretty much the same performance as localStorage.</p>
  
  <p>I'm wondering what other solutions there are?</p>
  
  <p>Could I create a "data" object that gets continually updated when events are fired? With a timeout function that falls-back to post? If so how would you set that up?</p>
  
  <p>What options are there for storing data on events that can be retrieved quickly? If someone could point me in the right direction I'd be super appreciative.</p>