Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm developing a website, and sometimes the code behind the page I'm loading will get stuck in a loop or whatever..

Why is it that Chrome, Safari, Firefox, IE etc.. etc.. don't respond if this happens.. clicking stop doesn't actually stop and give back control, as doesn't the back button or changing the address.

Is there a secret setting that can remedy this? It infuriates me!

share|improve this question
    
Loading script .. especially from another web ones –  matzone May 15 '13 at 15:19
add comment

1 Answer 1

The stop button on the browser is to stop loading of the page, not to stop rendering it. Your script runs as the page is loaded (or afterwards) and locks up the browsers GUI thread. Clearly you need to fix your script so that it uses timeouts and releases the UI thread, or better still do the heavy lifting on the server with AJAX.

share|improve this answer
    
That makes sense, I get that my code certainly needs fixing but I'd like to not have to wait around for my browser in order to debug it. Do you know of a plugin or something that totally just kills rendering and responds to me better? –  John Hunt May 15 '13 at 15:32
    
In Chrome Tools > Developer tools switch to the Sources tab and press the pause button on the right or F8 to pause running scripts. –  Ali May 15 '13 at 15:37
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.