Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:29
preload images question
Poster: jhilden
Dated: Wednesday October 12 2005 - 16:15:49 BST
I just ran across your prelaodmenuimages.js bolt-on and I'm a big fan, but I have a quick question about it.
calling drawMenus() before we call
Code:
<script language="JavaScript1.2" type="text/javascript" src="/js/menu/preloadmenuimages.js"></script>
doesn't make sense to me.
If we are preloading the images why are we drawing the menu first? I've dropped the script into my code call just after my drawMenus() call and I can still grab a menu, the menu opens but the images within the menu still take a couple of seconds to populate (text comes through right away obviously).
Any tips would be greatly appreciated.
Cheers!
Poster: Andy
Dated: Thursday November 3 2005 - 15:01:04 GMT
The menu is only drawn to memory, not actually drawn to the page at this stage. The prelaodmenuimages function will try and pre-load the images before the page has been fully loaded.
This should result in a much more efficient page loading procedure