if it ajaxCallInProgressis a true expression, it will be an infinite loop (and therefore, the interpreter will freeze forever).
In most cases, it makes sense to do something, while a specific condition is true, but in all these cases, the condition to be checked should at some point establish a false value inside the loop body.
Since ECMA- / Javascript does not support multiple threads (I just ignore web workers here), this variable cannot be changed anywhere else.
Conclusion
, , , .