Reliably Send an HTTP Request as a User Leaves a Page
On several occasions, I’ve needed to send off an HTTP
request with some data to log when a user does something like navigate to a different page or submit a form. Consider this contrived example of sending some information to …