Closed masakudamatsu closed 4 years ago
The user refreshes the webpage when the website appears to be frozen or the UI appears broken, not when the user wants to start from scratch.
So deleting all the user inputs is not an ideal behavior.
We may want to keep the user inputs in the sessionStorage, and make it refill the user inputs upon reload
sessionStorage
DOMContentLoaded
The user refreshes the webpage when the website appears to be frozen or the UI appears broken, not when the user wants to start from scratch.
So deleting all the user inputs is not an ideal behavior.
We may want to keep the user inputs in the
sessionStorage
, and make it refill the user inputs upon reloadDOMContentLoaded
appears to be the relevant event: https://developer.mozilla.org/en-US/docs/Web/API/Document/DOMContentLoaded_event