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.
1 Comment
Sort: