Forum Moderators: Robert Charlton & goodroi
I would like the list to be collapsed by default so that a user has to click to expand the list if they want to see all the subitems, in order to cut down on clutter, however, I would still like Googlebot to index the subitems in the list.
I was thinking about doing this by having a javascript load with the page and setting the style of the nodes to the collapsed style (display: none). First of all, will this cause Googlebot to not like my site? I wouldn't think so, as this seems like a valid navigational technique used by lots of sites, but I want to make sure. Also, will this actually do what I'd like, or will Google see that the javascript is hiding the nodes by default and therefore never index them? Thanks for any help.