Cancel infinite loop execution in jsfiddle

前端 未结 8 1977
北荒
北荒 2020-12-13 08:46

When you get an infinite loop in jsfiddle in Chrome, your only choice (that I know of) is to close the tab. Of course, this means you lose all your work in the current wind

相关标签:
8条回答
  • 2020-12-13 09:12

    In case others are stuck after reading the other answers, here's what worked for me (Chrome, Mac). For me the JSFiddle tab was 'stuck' but the rest of Chrome responsive. I had the JavaScript Console open on the Resources pane, but it was unresponsive too. Reloading the page in this state didn't help because JSFiddle would give me the script before I got anything at all.

    In the end this worked for me; maybe it will help you too...

    • While the page is unresponsive, go to Chrome > Preferences > Privacy and disable JavaScript.
    • Wait for page to die (about 4 or 5 minutes for me); the sad face icon comes up in that tab.
    • Hit the back button. It should look like JSFiddle is loading, but it won't because funnily enough JSFiddle needs JavaScript just to render a page.
    • View > Developer > View source
    • My script, only slightly mangled, was sitting there all innocent like in a div called 'panel_js'.
    • Highlight, copy, breathe again, learn lesson.
    0 讨论(0)
  • 2020-12-13 09:14

    I had file stuck in a loop and would freeze up the dashboard on JSFiddle as well.

    • The only way I could clear was to disable JavaScript in the preferences tab while I had a New Fiddle page open in a different Chrome tab.
    • Then navigate to All Fiddles.
    • Delete the Fiddle and then it would give a 404 error.
    • Turn on the JavaScript and reload the Dashboard.
    • Was able to continue on making and editing fiddles after that.
    0 讨论(0)
提交回复
热议问题