Wait for element than using ajax