Laravel:Ajax调用挂起服务器

I have ajax call

$(document).ready(function() {
    if ($('#realms').length > 0) {
      $.ajax({
        type: 'GET',
        url: location + 'ajax/status',
        success: function(msg) {
          $('#realms').append(msg);
        }
      });
    }
});

Which is handeled by function:

function ajax() 
{
  $realm = @fsockopen('somesite.com', 80, $errNum, $errMsg, 1);
  return view('ajax.servers', compact('realm'));
}

When i visit index page and after dom is loaded (when ajax call starting to execute) i try to visit another link - it just wait until ajax function executes (so, basically server is waiting for response of that function and i can't even visit another pages until it finished).

How i can deal with that? It is executing in 1 thread?