Is it a good idea to write a blocking call in javascript ? Meaning a function that does something for x seconds and returns ?
I wanted to add artificial delays by adding these inline blocking functions.
Downside of doing this is that the CPU is very busy executing some random stuff for x seconds.
Another downside is that the multiple tabs in the browser might hang.
Is there a better way to do this ???