I\'m doing an AJAX call (regular JS) and, if it takes more than, say, 500 milliseconds, I\'d like to put up my \"Please Wait\" box.
Normally, if I want to put up the
It shouldn't come after the ajax call, it should come inside the callback function. AJAX requests are asynchronous with the rest of the code, you should preform actions you want upon completion inside the callback part of your request.