Is there any advantage to moving the <div>s for the navbar dropdowns to a lower template (like the footer) to help reduce the amount of code at the top of the output? Can these be moved to another template and still function?
This is a discussion on <div> for DHTML Dropdowns within the Template Modifications forums, part of the vBulletin SEO Discussion category; Is there any advantage to moving the <div>s for the navbar dropdowns to a lower template (like the footer) to ...
Is there any advantage to moving the <div>s for the navbar dropdowns to a lower template (like the footer) to help reduce the amount of code at the top of the output? Can these be moved to another template and still function?
Yes, they can be placed anywhere--- so long as that template is on every page that the navbar appears (I think the footer template is the only one).
Is there an advantage... minor at best.
I'm working on a pure CSS solution with lists instead of javascript.
When it works, i will release it here.
I looked at my site with the CSS disabled and that was a lot of the code. if I moved it to the footer would it still appear the same to a spider?
it would appear at the bottom... thats all. I don't think it will help much, because theres already so much crap ABOVE the nav bar menu, that the navbar position is already too "low" in the doc.
Isn't one of the goals to reduce the amount of code between the top of the output and the content? Or are you saying that doing this has little bearing in how page content is viewed by spiders?
You are correct in the goal.
IMO, there's 10-20 lines after the <body> tag that count the greatest.
check out brent's site: Mustang Forums | Ford Mustang Enthusiast Forums
he did a great job adding semantic elements in those critical areas.
-header tags
-list items for his prominent sections