Forum Moderators: Robert Charlton & goodroi
For example, after a page loads, it has a text paragraph hidden using a "display:none" directive, and the paragraph opens up only when a user clicks a button.
I am a bit concerned about how GoogleBot handles the hidden text in this case. The text hiding is not done for rankings manipulation, and there is no keyword stuffing here, just a regular text paragraph. It seems to me very natural to have hidden text in interactive web applications, so I guess Google must handle that correctly, but does anyone here can reflect on this based on his own experience?
I'd say the issue to think about is the user experience for anyone arriving from a search result. I try to include a script to change the page so that their search term is visible for them, if the default rendering of the page has it hidden.
Spry has a tab widget that shows and hides tabs using JavaScript. They feature it on their main page at:
[labs.adobe.com...]
If you search for something that's in one of the 'hidden' tabs on Google, eg "The Spry Data set transforms complex data sources", you will see that it comes up on the first page of results.
... completely OK with Google as long as some user interaction can make the text visible.
If you search for something that's in one of the 'hidden' tabs on Google, eg "The Spry Data set transforms complex data sources", you will see that it comes up on the first page of results.
so basically, it means that googlebot can execute JS code, and figure out how a page is rendered ?
so basically, it means that googlebot can execute JS code, and figure out how a page is rendered ?
No - if you turn JavaScript off, and then look at that page, you will see that the tabs do not appear but all the content does. This is how Google will see the page. Basically, the JavaScript re-organises the page layout as it loads. So, if I was you, I would make sure that your content is fully visible on the page even if JavaScript is turned off. This is generally a good thing to do for SEO and accessibility reasons.