The site menu - why javascript?
-
Well, subject says it all, really. Why does CP use javascript for the menu, when the same functionality can be achieved with CSS? Is it just so that the menu items can get cached, reducing the bandwidth used? I think the amount used for the menu is minimal, but the javascript seems to slow down the site when it loads by a noticeable amount.
"impossible" is just an opinion.
-
Well, subject says it all, really. Why does CP use javascript for the menu, when the same functionality can be achieved with CSS? Is it just so that the menu items can get cached, reducing the bandwidth used? I think the amount used for the menu is minimal, but the javascript seems to slow down the site when it loads by a noticeable amount.
"impossible" is just an opinion.
Because getting Javascript to display properly is easier than getting CSS to display properly. Caching is also an important consideration as well. That said, I'd be happy to investigate an alternative if you have a fave implementation that works everywhere
cheers, Chris Maunder
CodeProject.com : C++ MVP
-
Because getting Javascript to display properly is easier than getting CSS to display properly. Caching is also an important consideration as well. That said, I'd be happy to investigate an alternative if you have a fave implementation that works everywhere
cheers, Chris Maunder
CodeProject.com : C++ MVP
/me tries to do the menu in CSS and basically fails Well, I have an implementation that almost works in Firefox (2 and the latest build of 3, not sure about earlier build) and Opera (whatever is the latest stable build). IE7 (havent tested other versions) hates it completely though. Too bad I dont have enough time for this. CSS is sorta fun to play with. I guess I'll revisit this eventually...
:badger: