Please Don’t Go is a JavaScript plugin used for changing the title and the favicon of the website when a visitor navigates to another tab in the window.
JavaScript has this little thing called visibilityState. It returns a couple of different values for the visibility of the document (visible, hidden, prerender, unloaded). So basically Please Don’t Go is a function that checks if the document is hidden or not. If the document is hidden, then a new title and favicon are switched out. And when it’s visible the original title and favicon are there. Super simple, but you can add something fun and different to your website that isn’t seen very often. Hit the demo page at the bottom to see the plugin in action.
You can read more about visibilityState on the Mozilla Developer Network.