Regarding multiple ajax request for same function

My Aim: To get response from ajax and show response from ajax as "First come first serve basis".Technology: ruby on rails + ajax (javascript)Explanation:[*]In image below 5 request are shown. 1st and 2nd request is re-run with same 4th and 5th request.Third request should Ideally take time all other request should take less than a second.I wish to get response from server via ajax independent of request sent. In sort, If 3rd request complete in 4.49 second and 5th request take 0.5 second. 5th Request should not wait for third request. Is it possible ? How?Kindly help me !
Ru3zj.png
 
Top