performing a GET in order to send data to an API before a user leaves the page can be seen as a performance issue.
Is there an alternative or a way a developer can optimize the client side javascript?
One of the great examples is:
Google Analytics!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I haven’t noticed too much of a hit in our applications when we bind to the beforeunload event:
Not sure if Google Analytics is doing it this way though.