Firing an ajax request while other ajax request in progress aborts the requests

Firing an ajax request while other ajax request in progress aborts the requests

I have a grid which contains a hyperlink on reference number which is unique. On clicking reference number, an ajax request is sent to the spring controller with reference number as the request parameter.

When an user clicks on two reference number quickly, two ajax requests are submitted to the server which results in the first request being aborted with status code 0 and second request is processed successfully.

When user clicks on two reference number after a certain interval, both the requests are processed successfully.

Can anyone please explain why the first request among the two gets aborted?