Stop running the script. A script on this page is causing IE to run slow.

Stop running the script. A script on this page is causing IE to run slow.

Hi All,
I am using jquery-1.8.0 with richfaces-3.3.3.final version along with JSF1.2 and Jboss EAP 5.1.2. I am loading a rich tree but while loading it getting a messgae on the IE stating script is running very slow but the same is working in to mozila.

1) When the IE8 browser takes more time to run the java script, IE responds  with a dialogue box "Stop running the script. A script on this page is causing IE to run slow.Do you want to stop"
         2) If Yes is given the script stops running,the tree values are not loading fully,so the tree is not expanding.
         3) If No is given, the values are getting loaded and the tree properties works correctly(Expanding).
         4) Using developer tools from IE Debugging mode found that the javascript from richfaces jar is looping continuously. (So,the dialogue box is appearing)
         5) The files that are involved in this looping are
                               a) tree.js Line 
                               b) tree-item.js
         6) When these files are over ridden in local js with same name, this file is referring to tree-item-dnd.js 
          7) The tree building process starts from ui.pack.js


JAR path (script ) - richfaces-ui-3.3.3.Final\org\richfaces\renderkit\html\scripts












But if I am deleting the jquery-ui-1.8.23.custom.min.js from page its loading properly. As per my understanding there would be some conflict with UI jar.

<script type="text/javascript" src="../../js/jquery-1.8.0.js"></script>

<script type="text/javascript" src="../../js/jquery-ui-1.8.23.custom.min.js"></script>

 

 I have tried with 1.8 and 1.9 both versions and their respective UI jars but still I am facing the same proble.

Please Help.

 

 

Mentioned below is the source code of my xhtml.

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"

xmlns:ui="http://java.sun.com/jsf/facelets"

xmlns:h="http://java.sun.com/jsf/html"

xmlns:f="http://java.sun.com/jsf/core"

xmlns:rich="http://richfaces.org/rich"

xmlns:a4j="http://richfaces.org/a4j"

xmlns:c="http://java.sun.com/jstl/core">

<head>

<title>Quote <h:outputText

value=" - #{newBusiness.prodTypeValue} Quote" /> <h:outputText

rendered="#{not empty newBusiness.quoteId}"

value=" Ref: #{newBusiness.quoteId} #{newBusiness.companyBean.companyName}" /></title>

<link href="../../css/reset.css" rel="stylesheet" type="text/css"

media="screen" />

<link href="../../css/pru_styles.css" rel="stylesheet" type="text/css"

media="screen" />

<!--[if IE 7]>

<link href="../../pru_styles/IE7.css" rel="stylesheet" type="text/css" media="screen" />

<![endif]-->

<link rel="stylesheet" type="text/css"

href="../../css/jquery-ui-1.8.23.custom.css" />

<script type="text/javascript" src="../../js/jquery-1.8.0.js"></script>

<script type="text/javascript"

src="../../js/jquery-ui-1.8.23.custom.min.js"></script>

<script>jQuery.noConflict();</script>

<script type="text/javascript" src="../../js/dialog.js"></script>

<script type="text/javascript" src="../../js/common.js" />