Mobile app version of vmapp.org
Login or Join
Steve110

: Javascript or GET request, what is best for seo? 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

@Steve110

Posted in: #Seo

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

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Steve110

2 Comments

Sorted by latest first Latest Oldest Best

 

@Yeniel560

Contrary to John's answer I would suggest not creating separate pages if there is not a large amount of content in the tabs. Doing so may create duplicate content in Google's eyes.

The best method for creating tabs like this is to not hide any content with your CSS, but hide the inactive tabs with JavaScript. Using document.ready means that you don't get the "flash of unstyled content". Any good tab plugin should do this.

Now, anyone with JavaScript disabled will simply see the tabs one after the other, while those with JS will see the tabs as normal.

10% popularity Vote Up Vote Down


 

@Sarah324

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.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme