Preventing concurrent ajax queries