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.
In the Internet Options window, open the Advanced tab. Under the Settings section, scroll down to Disable script debugging (Internet Explorer) under Browsing. Scroll down and uncheck the Display a notification about every script error box. Click Apply and OK to save the changes.
You have the choice of "Stop Script" or "Continue" buttons. Click the "Stop Script" button to stop the script from running. Stopping the script can prevent the browser from running out of memory or crashing.
First, go to the Settings section and scroll down to Browsing. Next, check the box associated with Disable script debugging (Internet Explorer). Next, look down below and uncheck the box associated with Display a notification about every script error.
A: Script error messages tend to appear when one's browser is out of date. What happens is the website you are visiting contains a version of JavaScript (the programming language that allows for animation and interactivity on websites) that is newer than what is installed on your browser.
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.
Get yourself a copy of the IBM Page Profiler:
https://www.ibm.com/developerworks/community/groups/service/html/communityview?communityUuid=61d74777-1701-4014-bfc0-96067ed50156
It's free (always a win). Start it up in the background, give it a few seconds, then refresh the page in IE. Go back to the profiler and it will list out all the resources used on the page and give you detailed profile information - in particular where JavaScript is taking a long time to execute.
It should be a good start to finding the source of your problem.
If the script tags are inline, I'd suggest creating a local copy of the file and separating out the script tags to separate files if you can.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With