Does placement of script inside a DIV affect performance?

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
Remco01
Beginner
Beginner
Posts: 1
Joined: Fri May 09, 2003 8:49 am
Contact:

Does placement of script inside a DIV affect performance?

Post by Remco01 »

Hello Andy,

Been testing your version4script on our site (dutch hospital) and planning to use it. Works great!
Tested o.k. on IE5 IE5.5 IE6 NN4.7 on win
Little buggy on NN62 and Mozilla1: The background of the menu-items overflows (is this correct english? :oops: ) the right border. Also menucreation is still a little slow in those two browsers. See what I mean at http://www.maaslandziekenhuis.nl/web_new/menutest.php
How bout compatibillity of script with browsers like opera and safari?

The site was created without use of tables for layout so all div and css. I've put the menuscript in the source of my htmlpage inside a div. I've also created a separate print.css. In that css I've declared display: none; to the div with the menuscript inside so if the page is printed, the menu-items are not visible/printed

I've placed that div at the bottom of my html just before the /body tag In my opinion this causes the pagecontent to load before the menu is created or am I wrong on that?

Thoes this workaround affect the performance of the menu in some way?

Best,
Remco

note that al links in my menu are dummylinks atm
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

It took a little over 10 seconds for the full page (including menus) to open up here. I don't know if that's just the delay from Phoenix to you, PHP building things, or the way you have it set up. The boss (at least he's closer in the UK) will have to try that one.

I use Safari b2 all the time now (at least at home - stuck on a PC at work), and it is performing great with v4. I understand Opera is also doing better. NS6 never was very cooperative - try going to 7.02.

Seriously considering putting v4 live on one of my sites this weekend given its excellent performance so far. When Andy gets the rest of it in place he's going to have a killer app here (not that he doesn't already!).
John
Post Reply