Which script is causing hang in IE9?

One of my WordPress pages is causing IE9 (win7 32bit) to become unresponsive and give the following dialog:

lolabeta.com is not responding due to a long-running script. [Stop script] [x]

Read More

Here is the page URL for anyone who wants to take a look:

http://lolabeta.com/cupcakes/coconut-margarita/

This page does not hang in Chrome or Firefox, but does in IE8 and possibly other IE versions. I don’t need a diagnosis, necessarily, but wonder if there is some way to get IE to tell me which script is causing its problem?

Related posts

Leave a Reply

2 comments

  1. If you run your page with the debugger open (press F12), click on the script tab, then click ‘Start Debugging’, you can see which file caused it.

    Screenshot

    The culprit is jquery.js, line 6047, character 5. However, it’s more likely that one of your scripts is calling jquery in a tight loop. I would remove each script tag until the error stops happening.

    Another debugging technique is to add a break point at the line mentioned above and check the call stack. It may be very tedious if there are other places in the code calling the same function but are not causing the problem. So, I would start by removing script tags, once you find the real culprit, remove all other script tags, and check the stack trace. Warning: This is not going to be fun

    Good luck

  2. IE9 running on Vista. My Explorer suddenly became virtually unusable today, constantly displaying the long-running script error message and freezing up. Long story short, I found that an Add-on toolbar, called Linkury, had somehow got installed into my explorer program. Although I had closed the extra toolbar on the screen, it was still running in the background. In IE go to Tools, Manage Add-ons, scroll down to Linkury and disable. That may fix your problem. It fixed mine right away. I confirmed it by enabling it again and the problem came back right away. I also went into programs and uninstalled Linkury. Hope that helps. Phil