Modern browsers will sometimes suspend pages or discard them entirely when system resources are constrained. The Page Lifecycle API exposes the web page lifecycle hooks to JavaScript. There are six states introduced in the API. You can find the lifecycle states and the transition in detail by looking at the following diagram.

7m read timeFrom medium.com
Post cover image
Table of contents
Deep Dive into Page Lifecycle APIPage Lifecycle API
1 Comment

Sort: