Articles on: Preview

My project is freezing on openning

Sometimes it happens that you can write code that will load the processor at 100% and the browser freezes.

We have protection for for, while, while do, it's called Loop protection.

However, it is impossible to protect against infinite recursion. There is one solution:


  1. Close frozen browser tab.
  2. Open any other project without problems, or a new one: https://playcode.io/new.
  3. Click to the green triangle and disable Run on opening.
  4. Then open your project and try to fix your recursion.



Updated on: 21/03/2022

Was this article helpful?

Share your feedback

Cancel

Thank you!