将搜索引擎抓取生成的JavaScript的关键字和描述meta标签? [英] Will Search Engines grab javascript generated keyword and description meta tags?

查看:508
本文介绍了将搜索引擎抓取生成的JavaScript的关键字和描述meta标签?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个网站,通过AJAX加载它的模板。 该说明关键字 meta标签都在这个 template.html 的文件,而不是当前的 index.html的页面加载。在模板被加载,将嵌入模板中的meta标签到 index.html的文件。

I have a website that loads its template via ajax. The description and keywords meta tags are present on this template.html file and not on the current index.html page being loaded. After the template is loaded it will embed the meta tags from the template into index.html file.

请问谷歌或其他任何搜索引擎能够读取这个页面的说明关键字这是动态的meta标签插?

Will Google or any other search engine be able to read this page's description and keywords meta tags which were dynamically inserted?

我问这个,因为我听说,很多搜索引擎不支持javascript,虽然,从网站的搜索结果在谷歌它显示一个包含整个布局的页面得到一个preVIEW截图(后当插入 template.html ),所以这让我,但奇怪的。

I'm asking this because I've heard that many search engines don't support javascript, although, when getting a preview screenshot from the website search result on google it displays the page containing the whole layout (after the insertion of template.html) so this made me a but curious.

在此先感谢

推荐答案

添加HTML与JavaScript中DOM的已被证明的与谷歌的抓取工作。所以,真正的问题是,如果采用这种方法仍然有效的meta标签标记。你需要运行自己的测试,因为没有其他人似乎之前已经运行在这一个案例研究。

Adding HTML to the DOM with JavaScript has been shown to work with Google's crawl. So the real question is if using this method still works for meta tag markup. You'll need to run your own test, as no one else seems to have run a case study on this before.

这篇关于将搜索引擎抓取生成的JavaScript的关键字和描述meta标签?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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