Get the latest tech news
Say Bye with JavaScript Beacon
Send data, say goodbye, and move on. That's JavaScript's Beacon in one line.
Sometimes we want to send a piece of data to our servers when user leaves our website or webapp. It will be a bad experience for user to have delay when they close the tab or move to a different website. But hey, for it’s intended use, tiny important message sent as the page closes, it works beautifully.
Or read this on Hacker News