I have an AJAX request to let the user delete some data from the list. When the ajax done I call another ajax request so the list updated with new the list of data. AJAX request to delete data:
// the follow function call an ajax with get request so as the list will be updated with the new one
Yes, it's entirely safe.
done() handler will not be called until the promise returned by the
$.ajax method has been resolved, which will only happen after the server has finished processing and returns a
200 OK response. If any other response is received then the
fail() handler will execute instead.
In both cases the server processing will have stopped before a response is received by the client.