Added in a check for ajax calls and we ignore this init if it is an xmlrequest, speeding up ajax requests.