The size of your UL might simply be getting a little too large for the script to handle effortlessly. For the time being, one way to mitigate the page from stalling is to use the Ajax option of the script to load the UL from an external file instead (see here). The way Ajax works is asynchronously, so at least it will not stall the loading of the page initially as it works in the background to load the menu contents.
A couple of other things you should do:
1) Remove the code in red inside your HTML page:
Code:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<link rel="stylesheet" type="text/css" href="drilldownmenu.css" />
<script type="text/javascript" src="drilldownmenu.js">
/***********************************************
* Drill Down Menu script- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for this script and 100s more
***********************************************/
</script>
It's redundant, as you already have a jQuery reference further up the page.
2) Secondly, for the remaining jQuery reference on your page:
Code:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" src="ddaccordion.js">
/***********************************************
* Accordion Content script- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* Visit http://www.dynamicDrive.com for hundreds of DHTML scripts
* This notice must stay intact for legal use
***********************************************/
</script>
Change the code in red to the below instead, which is the latest version of jQuery, and does contain some speed improvements:
Code:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
Bookmarks