The problem is in the title - IE is misbehaving and is saying that there is a script running slowly - FF and Chrome don't have this problem.
How can I find the problem . .there's a lot of JS on that page. Checking by hand is not a good ideea
EDIT : It's a page from a project i'm working on... but I need a tool to find the problem.
End : It turned out to be the UpdatePanel - somehow it would get "confused" and would take too long to process something. I just threw it out the window - will only use JQuery from now on :D.
And I'm selecting Remy Sharp's answere because I really didn't know about the tool and it seems pretty cool.
For IE, the dialog is based on the # of JS commands processed. See here for info & method to change default: http://support.microsoft.com/kb/175500
Long running scripts are detected differently by different browsers:
Nicholas Zakas has written an excellent article covering this topic.
As such - the best way to avoid these problems is by reducing looping, recursion and DOM manipulation.
I found that adding alert('before X') alert('after X') was helpful for me to find my issue. I added them to my $(function () {
}
There are few reason for this kind of alert
No. of JS instructions executed by IE exceeds predefined limits. This can be fixed by editing windows registry see Here
Optimize the javascript code so that execution time is reduced.
If you have control over the JavaScript, you could break it into separate scripts or try a Lazy Load approach.
Just my $.02
I don't believe there's a tool that can find the offending script. You might try attaching an IE debugger like Visual Studio and maybe it will break at the point where the problem is occurring. But I can't give any guarantees on that working.
In the past when I've had similar problems I've simply commented out sections of code to test narrow down where the issue is occurring, usually in a binary search type pattern. Comment out half of the javascript libraries, etc...
Aside from that as others have said, this type of problem occurs from large loops and many setTimeout function calls or setTimeout recursive loops.