jquery ajax beforesend

I have a simple ajax call that is executing a function on the beforeSend and on complete. They execute fine but the beforeSend is “seemingly” not executed until after the success. On the before send …