if dev is using some framework to do the ajax call here, it may have a "counter" that keeps track of how many are in flight, like jQuery does.  If so we should take advantage of that because sleeps suck and should be used only as a last resort.  They are either unreliable or make the tests run slower.