When I write a comment with github\'s issue page, I noticed that the comment body remains even if I reload the browser.
I have checked localStorage, session
They are using SessionStorage to do this:
On Page Leave:
.js-session-resumable as selectorSessionStorage as session-resume:/current/page/pathOn Page Load:
session-resume:/current/page/path key in SessionStorageSessionStorageNote: If you write a comment in a page (without submitting it) and go to another page, then you can see your comment saved in SessionStorage.