This demo shows you that if you click several times on the button below, the ajax call will be only made if you don't click anymore during 2 seconds.