WICG / page-lifecycle

Lifecycle API to support system initiated discarding and freezing
https://wicg.github.io/page-lifecycle/
Other
154 stars 12 forks source link

Freeze/resume and history state #34

Open dvoytenko opened 5 years ago

dvoytenko commented 5 years ago

This is related to the clientId and indexed db storage mentioned in the current draft of the spec. Will it be recommended for a web page to take advantage of the history.state for pause/resume? In all other respects, the history state storage could be a good ephemeral storage mechanism that naturally gets thrown out when a tab is closed. The History API in its current state is not very convenient for something like this, but otherwise this storage seems to fit well?

dvoytenko commented 5 years ago

This mechanism is also somewhat similar to when a web page is reloaded by the browser and auto-restores form fields.