Wait after AJAX call