Is there any way to pause our main thread in jQuery for a minutes/seconds.
Let take a example.
I need to print 25 elements, then after few second, I need print 25 to 49 elements? Similar to sleep mode in Java. Is there any method which stop processing?
for(var i=0;i<50;i++ ){
console.log("---------------"+i);
if(i==25){
//stop thread for 1 min ?
}
}
Thanks