When working with multiple AJAX requests at that time its hard to detect when will be all request is being completed.
You can use the setTimout() method which will execute your action after your given time. But it is not a better solution.
jQuery has the inbuilt event handler to detect AJAX completion.