noscript谷歌快照,安全的方式 [英] noscript google snapshot, the safe way

查看:131
本文介绍了noscript谷歌快照,安全的方式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个javascript密集的页面我甚至无法开始为它编写等效的PHP。在这种情况下,该页面有一个< noscript> 标签,表明该页面对非js用户是不可查看的。

I have a page that is so javascript intensive I can't even begin to write the equivalent PHP for it. That being the case, the page has a <noscript> tag that says the page is unviewable to non-js users.

无论如何,我可以提供页面的快照版本,以便谷歌可以查看页面包含的内容,以便人们可以通过搜索短语找到我的页面。

Anyway it is possible for me to serve up a snapshot version of the page so that google can see what the page contains and so that people can find my pages by searching for phrases.

那么我有办法吃蛋糕并吃掉它吗?这意味着我可以为非js用户提供一个空白页面但是如果谷歌机器人出现了它是一个骨架页面吗?

So is there a way for me to have my cake and eat it too? Meaning can I have a blank page for non-js users but if a google bot comes along serve it a skeleton page?

我怎么会这样做呢?也会做这样的事情会损害我的排名吗?

How would I even go about doing this? Also will doing something like this hurt my rankings?

推荐答案

值得注意的是,众所周知Googlebot会执行大量的现在使用Javascript。只要加载的页面上有所有必要的内容,你就可以了(至少谷歌 - 其他搜索引擎,可能不那么多)。

It may be worth noting that Googlebot is known to execute a significant amount of Javascript now. So long as the page which loads has all the necessary content on it, you may be fine (for Google at least -- other search engines, perhaps less so).

失败:您不一定需要在页面的noscript版本中拥有所有完全相同的内容,只是尝试传达相同类型的信息。我不知道您的网站涉及什么,但如果您只是转储页面内容的基本文本表示,那可能就足够了。

Failing that: You don't necessarily need to have all the exact same content in the noscript version of the page, just an attempt to convey the same sort of information. I don't know what your site involves, but if you can just dump a basic text representation of the page's content, that might be sufficient.

这篇关于noscript谷歌快照,安全的方式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆