View Full Version : Main Menu Slow - Javascript Issue?

Chris Jones
Feb 13th, 2011, 05:47 PM
The left-hand (main) menu for my website (www.displaycentre.co.uk) is extremely slow on IE8 on some PCs yet fine on others. No problems with other browsers at all.

I know that the menu is huge but cannot understand why the speed is fine on some (even low spec) PCs and yet it is painfully slow on others. It is slow on all of my work PCs (some with 512Mb RAM others have 2GB!) and also my PC at home (which is brand new this weekend, 2Gb RAM and only Windows XP + all updates loaded so far).

Any body out there got any ideas? My developer is simply putting it down to the way in which IE8 copes with such huge menus?

Thanks in anticipation.


Feb 13th, 2011, 07:04 PM
I can't reproduce on my PC, so I can't really say anything about that particular problem.

Anyway, I'd be more concerned that it doesn't work in IE9 at all.

Chris Jones
Feb 14th, 2011, 12:26 PM
Thanks venegal,

Am I going to be able to find a java solution that works in all browsers or should I go back to a css solution?



Feb 14th, 2011, 05:41 PM
First off, it's Javascript, not Java. Those two don't have anything to do with each other.

The best way would be to have a CSS solution that's progressively enhanced by Javascript. So, without Javascript, the submenus would just pop out on hover; with Javascript enabled they would be animated.

That said, I have no idea if you will be able to find a solution that will perfectly fit your needs. You can definitely make one (or have one made) though.

Anyway, the first step to make your site cross-browser-safe would be to get rid of validation errors, and you have LOTS of them: http://validator.w3.org/check?uri=http://www.displaycentre.co.uk/