My code crashes or freezes the browser
If your code is causing the browser to crash or freeze, it’s likely due to an issue in the code itself. Our platform operates as a coding sandbox, so certain errors can overload your browser.
Common Causes:
- Infinite Loops: Loops without a proper exit condition can run indefinitely, using up all your browser’s resources.
- Runaway Code: Overloading your browser with excessive tasks, like creating too many elements or recursive calls without a stopping condition, can also cause issues.
How to Resolve It:
- Create a New Scrim/Scribble: Start fresh in a new scrim/scribble and test smaller portions of your code to identify the problem.
- Revert to a Previous Version: Use a saved instance of your code (if available) to revert to a working version and amend the issue from there.
- Close and Restart the Browser: If your browser freezes, restart it to regain functionality before troubleshooting further.
By revising your code carefully and testing in smaller increments, you can identify and fix problematic areas. If the issue persists, feel free to contact us for support.