GitHub repository: magic-akari/page-lifecycle
Description: PageLifecycle.js is a tiny JavaScript library that allows developers to easily observe Page Lifecycle API state changes cross browser