Javascript sleep, javascript wait, javascript setTimeout

When you are trying to call same ajax function again and again ,then it may be possible that some calls are not acknowledged.i experienced this problem so i’m sharing this article Javascript sleep, javascript wait, javascript setTimeout with you .

Sleep function  stops the executing thread for given amount of time.

for example:
we have function name

function do_ajax() {
//some code
}

Continue reading “Javascript sleep, javascript wait, javascript setTimeout”