Page lifecycle
Limited availability
The page lifecycle API helps you safely handle page suspensions or discards from memory. The freeze
and resume
events fire when the browser suspends or resumes a page from memory while the document.wasDiscarded
property reports whether the page was reloaded after being dropped.
Browser support
- Chrome 68 Released on 2018-07-24
- Chrome Android 68 Released on 2018-07-24
- Edge 79 Released on 2020-01-15
- Firefox ❌
- Firefox for Android ❌
- Safari ❌
- Safari on iOS ❌
Specifications
- Page Lifecycle, from Web Platform Incubator Community Group (W3C).