jquery - Making a GET call before leaving page - Javascript -


A GET to be sent as a demonstration to send data to the API before leaving a page Could issue

Is there an alternative or a way that the developer can optimize client side javascript?


One of the great examples is: Google Analytics!

I have not seen too many hits in our applications when we beforeunload < / Strong> Join event:

  $ (window) .bind ('beforeunload', function () {// make your GET}};  

Make sure Google Analytics is doing this like this.


Comments