codeforamerica / fast_pass

Las Vegas Development Opportunity Finder
BSD 3-Clause "New" or "Revised" License
7 stars 4 forks source link

Implement better autosave timing. #55

Closed louh closed 10 years ago

louh commented 11 years ago

Currently, it autosaves to localStorage after a user clicks 'next'.

This is not ideal because:

An alternative would be to manually call the autosave function after certain actions, like after loading a parcel, or matching the user to a LV business category. Or set a timer on the application that saves the state of UserData every x seconds?

louh commented 11 years ago

I figured out how to save the application during window.onbeforeunload, which is pretty good, but it doesn't save user input because that input hasn't been captured yet.