Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. Site Bugs / Suggestions
  4. The site menu - why javascript?

The site menu - why javascript?

Scheduled Pinned Locked Moved Site Bugs / Suggestions
questionjavascriptcss
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Anton Afanasyev
    wrote on last edited by
    #1

    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.

    C 1 Reply Last reply
    0
    • A Anton Afanasyev

      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.

      C Offline
      C Offline
      Chris Maunder
      wrote on last edited by
      #2

      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

      A 1 Reply Last reply
      0
      • C Chris Maunder

        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

        A Offline
        A Offline
        Anton Afanasyev
        wrote on last edited by
        #3

        /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:

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups