homepage Welcome to WebmasterWorld Guest from 54.163.91.250
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
Home / Forums Index / Google / Google SEO News and Discussion
Forum Library, Charter, Moderators: Robert Charlton & aakk9999 & brotherhood of lan & goodroi

Google SEO News and Discussion Forum

    
Drop Down Menus - HTML vs .js
austtr




msg:4688033
 11:43 pm on Jul 15, 2014 (gmt 0)

I have a site where the user experience is best served by a multi-tiered drop-down menu. The choices were to use a DHTML app that compiles the menu data into .js files or to use a tool that outputs the menu data into HTML code.

The HTML option generates a HUGE volume of on-page code which I'd prefer to avoid. The .js option has just a couple of lines of code that calls an external file and all menu item pages get crawled and indexed via a row of footer links.

I've recently had a few experienced people look at this site to try and figure out why Penguin trashed it. All of them commented on the .js drop down as "maybe" a problem but were not sure and could not pinpoint any specific issues… more a gut feeling thing.

Anyone here with some experience on the pros and cons of .js drop-down menus?

 

lucy24




msg:4688051
 12:54 am on Jul 16, 2014 (gmt 0)

<tangent>
The HTML option generates a HUGE volume of on-page code which I'd prefer to avoid. The .js option has just a couple of lines of code that calls an external file and all menu item pages get crawled and indexed via a row of footer links.

I don't think it's that clean-cut. The ultimate code has to be about the same size, regardless of format. It's just a question of where the user downloads it from-- as part of the page, elsewhere on your own site, or a third-party library-- and whether the work is done in your server or in the user's browser.
</tangent>

Do the footer links exist independent of the dropdown navigation part?

phranque




msg:4688052
 1:08 am on Jul 16, 2014 (gmt 0)

have you checked that the .js file isn't excluded from crawling?

perhaps the "internal links" section of GWT will give you some hints.

google has gotten pretty good about recognizing javascript menus but i wouldn't depend on that.

phranque




msg:4688054
 1:10 am on Jul 16, 2014 (gmt 0)

It's just a question of...

it's worth noting an external file gives you the option of caching reusable code.

FranticFish




msg:4688084
 7:19 am on Jul 16, 2014 (gmt 0)

The HTML option generates a HUGE volume of on-page code which I'd prefer to avoid

I'd look for a better one. There are good pure CSS menus out there that use minimal markup.

See also [webmasterworld.com...] (blocked CSS & JS and Panda)

And finally: [youtube.com...] (Matt Cutts on footer links)

Matt Cutts "We do reserve the right to treat links in footers a little differently". Note that I think here he's referring to the 'sitewide' scenario, but I personally would consider spiderable footer nav an additional / secondary form of navigation, not the primary.

Martin Ice Web




msg:4688152
 1:42 pm on Jul 16, 2014 (gmt 0)

Ipad can't show css drop down as there is no hover support! A workaround is needed. Did you think of a ajax menue? It is best for less traffic and overhead code , plus u can make it more variable dependend on the site u are on: think about siloing.
Keep. Hreadcrumps up for poeple not using js.

FranticFish




msg:4688318
 5:37 am on Jul 17, 2014 (gmt 0)

My dev guy recently built a pure CSS menu that worked in iOS for a project we worked on. Failing that you can use Javascript (or jQuery) to add 'onTap' to 'hover' events in iOS.

Martin Ice Web




msg:4688812
 11:06 am on Jul 18, 2014 (gmt 0)

@frantic i know that this will work. But jet this means much overhead, i keep up the question every time i redesign a site: what do i need for navigation? I see lot of overkill navigation and ask myself where is this usefull in regard of useness and traffic ?

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Google / Google SEO News and Discussion
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved