Results 1 to 2 of 2

Thread: AJAX menu or Javascript menu?

  1. #1
    Join Date
    Apr 2007

    AJAX menu or Javascript menu?

    Guess my question is which is better to implement? What are some pros and cons?

  2. #2
    Join Date
    Feb 2003
    Michigan, USA
    JavaScript menus tend to be quicker. All the HTML for the menu is on the page when the user loads it. AJAX menus are slower since you have to wait for each layer of the menu to load. I'd say stick with pure JavaScript if the HTML and JavaScript for the menu isn't so large it slows the page rendering down. If you've ever been to deviantart.com, they use an AJAX menu that I think is well implemented. Their menu has a monstrous number of levels and items, though. It's really your call. Which one performs better from a user's perspective? That's the perspective that counts.

    And, will the menu be keyboard accessible, and will it degrade gracefully if JavaScript is not supported? Since search engine crawlers are the most numerous and important JS-disabled user agents visiting your site, you don't want your navigation written to your page with JavaScript. Search engines won't be able to follow any of the links. You'll want to use a series of lists and links to ensure accessibility.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center