I encountered this constantly, on Windows and Firefox. I had to make it work for a game jam last weekend. My solution (workaround) was to regularly refresh the page (F5). I'm not sure if saving before refreshing was important to do, but I saved lots anyway.
Also, maybe a separate issue, but my exits and endings kept going down to 1/1 (there should be several more). Refreshing also resolved this (temporarily).