Forums Archive Index > SmartMenus 5 > Preload menu?

Author: BK

Date: 30 Apr 2005 4:10 am

Hi Vasil,

First of all, I would like give you a big thank you for solving my many problems with my web pages. Just to let you know, the menu is working perfectly on my website now with IE and Firefox.

Right now, I'm just fine-tuning the pages, and that's when I noticed that the menu is usually loaded after the content of my page is loaded. So when a page loads, the menu appears the last, which is weird for my pages because my menu is at the top of the pages. I guess this is because my menu is mostly image-based, but my contents are mostly just text, and since text loads faster than images; hence, the menu shows last.

I'm wondering if it's posible to pre-load the menu, or somehow let the menu loaded onto the page before the content is loaded?

Thanks.


Author: smartmenus

Date: 30 Apr 2005 5:14 am

Hi BK,

In your pages the link to the script loader is placed right after the <body> tag (in case you haven't changed this since I took a look for the last time ;)). This means that the menus start loading before the content of your pages and normally should load (and be displayed) before most of the other content is loaded. I suppose you are viewing your site on a very fast connection (locally on your hard disc or on intranet) and that's why the menus are displayed after the content of your pages- because there is also an amount of time needed for the menu-build process after all. So basically my point is that on slower connections the menus should normally load before the content.

However, in your case there is also something else. The menus are positioned relatively to an image on your page. And because of that, the script first have to wait for the image to become accessible in the object model (so that it can calculate the position of the image) and can display the menus only after that has happened. This might also slow down the display of the menus in certain cases.


Author: BK

Date: 30 Apr 2005 9:41 pm

Thank you for your explanation.