xhr ready state change slow