Infinite LoopExample Project Used https://stackblitz.com/edit/js-vub9fd?file=index.js StepsFind the cause of the infinite loop in the UI (ex: a button click)Open the Performance Tab in the DevToolsClick record Performance Tab is recordingFire the event that is causing the infinite loopNow click stop recordingBut now you will notice that Chrome freezes, and here is the trick Performance Tab freezes