Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can a menu script be Pre-Loaded

Status
Not open for further replies.

egims

Technical User
Jun 5, 2001
96
US
I have a menu script on my web site that seems to be the last thing to appear each time when a page is loading. Is there any way to preload the menu like you would an image so that it appears quickly?

The script has its own set of instructions that must load in order for the menu to function:

<!--Begin, Scripting for Header Menu-->

<script type='text/javascript'>
function Pop_Go(){return}
function PopMenu(x,y){return}
function OutMenu(){return}
</script>
<script type='text/javascript' src='popmenu_var.js'></script></script>
<script type='text/javascript' src='popmenu_com.js'></script></script>

<!--End, Scripting for Header Menu-->

Thanks
 
well you've already taken the first step by caching the files ie. storing the data in .js files

I was just reading about a page with a few tips and claim that you can gain much performance by caching your objects as well. ie storing them in a user defined variable. This couuld be especially helpful in loops heres the link

http://www.javascriptkit.com/javatutors/efficientjs.shtml

MCP, .Net Solutions Development <%_%>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top