More efective waitForAjax