I have a situation where on page unload I am firing a request to delete the draft of a user\'s work. This works fine until a user chooses to refresh the page, whereupon ins
I'm here to confirm @Silkster answer. I can fire an AJAX request after set an option async = false
Here is the example code.
$(window).unload( function () { $.ajaxSetup ({ async: false }); $.get("target.php"); });