I small navigation bar (just 2 tabs: Aluminio lacado and Cobre natural) inside one of the sections of a website.I'm wondering if, in this small nav bar, I should create normal links that request the content to the server or just create a javascript code that switch the content.I like more the second option but I don't know what is better thinking in seo, since I would have to set display:none to the hidden content...Javi
Javascript or GET request, what is best for seo?
seo
The best way to implement this is to do both. Have the content load a fresh page with the content if JavaScript is disabled and then using progressive enhancement you have JavaScript override the links and show/hide the appropriate content by showing/hiding the divs. That way your content is available to non-JavaScript user-agents (search engine bots, screen readers, etc) but you provide an enhanced experience to those who do have JavaScript enabled.