PDA

View Full Version : Stop running this Script?



chetan.nellekeri
11 Jun 2014, 11:36 PM
I created an application which consists good amount of UI controls. But when I try to run the application i getting the following issue in IE8 browser:
Stop running this Script? A script on this page is causing your web browser to run slowly. If it continues to run, your computer may become unresponsive.

I removed all the unnecessary containers. I used page analyzer also to locate the issue. The page analyzer report also doesn't show any issues. Can any suggest the way to solve this script issue. Thanks, in advance.

Note:Not able to post the code as it is a big application.

vardhan22
11 Jun 2014, 11:58 PM
I do not think, this has to do with ExtJs.
There might be some issue with your system.

How to solve it:
http://support.microsoft.com/kb/175500

DO NOT KEEP YOUR BROWSER IN COMPATIBILITY MODE and TRY NOT TO HAVE LARGE NUMBER OF DESKTOP GROUPS.

These are two prime reasons for this issu

chetan.nellekeri
12 Jun 2014, 12:38 AM
But the other ExtJS applications which I am running is working fine in the IE8 browser. Only this application is giving this issue.

vardhan22
12 Jun 2014, 12:53 AM
You cab use profiler for IE to see whether any scripts related to ExtJs take a long time to load. The following link describes how to to JavScript profiling in IE
http://msdn.microsoft.com/en-us/library/ie/dn255005%28v=vs.85%29.aspx
(http://msdn.microsoft.com/en-us/library/ie/dn255005%28v=vs.85%29.aspx)http://msdn.microsoft.com/en-us/library/dd565629(v=vs.85).aspx


(http://msdn.microsoft.com/en-us/library/ie/dn255005%28v=vs.85%29.aspx)Also, try to remove un-necessry layout modifications, nesting. Keep your layout as simple as possible.
The another link here http://www.sencha.com/forum/showthread.php?226514-stop-running-this-script-message-on-IE-8& addresses the same issue. have a look at it. May help

The browsers do this, to ensure, your code is properly written, and it has not gone into infinite loop. So, u can remove code, untill u reach the point where problem does not happen or check those areas, where you are using Recursion or Looping.

scottmartin
12 Jun 2014, 6:27 AM
You moist likely have some very un-optimized code and you need to find out where this is happening.

IE8 is very slow and it is the first to show that you have an issue.
Poor layout runs or looping code (recursive entries)

Since you cannot provide any code, perhaps you can place console commands in your code to see where the problem exists



console.time('TopOfFunciton');
// code to time
console.timeEnd('BottomOfFunction'); // before return


Of course, IE8 will not like the console code, so you will have to run this in another, but IE8 is not the issue, your code is.

chetan.nellekeri
12 Jun 2014, 8:50 PM
I commented all the logic and functions. Just trying to display only UI. Still its giving the script issue. As you said there is an issue with UI layout. But I am unable to find out where exactly the issue is. Is there any way to find out where the issue with UI.

All the files related to the UI are attached in this post.