How wicg/page-lifecycle works
This repository proposes a web-page lifecycle API, not a runtime application. Its central workflow is that browser or system lifecycle transitions notify a page through freeze/resume callbacks, letting the application release or restore resources; a discarded page can detect that state on reload. The README also documents BFCache callback ordering and system interventions for CPU and memory. No source excerpts were provided, so relationships below rely on README statements; spec.bs is the specification source identified by the repository tree.
Main entry points: spec.bs Frame lifecycle states
Components 11
Lifecycle model
- Frame lifecycle states
spec.bs - End-of-life scenarios
spec.bs
Page API
- Document API
spec.bs - Freeze/resume events
spec.bs - Discard restoration
spec.bs - BFCache integration
spec.bs
System interventions
- CPU suspension
spec.bs - Tab discarding
spec.bs
Other components
- Browser
- Operating system
- Web application
Connections 13
- Browser → Frame lifecycle states: transitions frames
README.md - Operating system → CPU suspension: stops CPU
README.md - Operating system → Tab discarding: reclaims memory
README.md - CPU suspension → Frame lifecycle states: moves to frozen
README.md - Tab discarding → Frame lifecycle states: moves to discarded
README.md - Frame lifecycle states → Freeze/resume events: signals transitions
README.md - Freeze/resume events → Document API: exposes handlers
README.md - Web application → Document API: handles callbacks
README.md - Frame lifecycle states → Discard restoration: sets wasDiscarded
README.md - Discard restoration → Web application: supports restoration
README.md - BFCache integration → Freeze/resume events: orders callbacks
README.md - Browser → BFCache integration: enters or exits
README.md - Frame lifecycle states → End-of-life scenarios: covers termination
README.md