'After running JS in chrome console the browser is getting stop

I have a script which i want to execute in the chrome console l but the browser is getting stuck. However script consist of sleep function which basically stop the program for some time and then continue. Is there any option where i can run script and also browser also not get stuck(stopped).



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source