3 ms·
Hello all I'm the author of this post. There are some suggestions for Javascript-based alternatives. A well-implemented Javascript overlay for the blackout mes
by pierrefar 15y ago
Hello all
I'm the author of this post. There are some suggestions for Javascript-based alternatives. A well-implemented Javascript overlay for the blackout message is a valid option, but keep in mind the following when thinking about it:
1. Googlebot does run some types of Javascript. We blogged about this recently: http://googlewebmastercentral.blogspot.com/2011/11/get-post-and-safely-surfacing-more-of.html http://googlewebmastercentral.blogspot.com/2011/11/get-post-...
This means that the content included via Javascript may be indexed until the next time we crawl and process the page and find it's gone.
2. Consider how the JS will affect your pages' instant previews. Overlays are likely to show up in the previews, and these will take some time to update as we re-generate the previews.
3. Consider your users. Some webmasters are suggesting keeping the blackout overlay visible without any means of hiding it. That may not be the best user experience, and may be annoying to your non-US based users.
I'm happy to answer any other questions.
Thanks,
Pierre
- wahnfrieden 15y agoYou should be able to help googlebot index the right content by using different HTTP status codes in the response. Also, although googlebot executes JS, in my experience it doesn't use it for indexing content. My guess is that it's primarily used for the instant preview and for verifying that you're not cheating by hiding SEO keywords on load or whatnot. This could change any day, of course.