Page Life cycle - beforeunload, pagehide, unload
Have you ever wanted to save any data before the users closes the web page ?
There are JS events where we can send server side requests to save useful data . The normal synchronous http request does not work and only asynchronous methods like Fetch ...
mithun.hashnode.dev2 min read