搜索引擎会抓取javascript生成的关键字和描述元标签吗?

时间:2022-02-15 06:28:01

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.

我有一个通过ajax加载模板的网站。描述和关键字元标签出现在这个模板上。html文件,不在当前索引上。html页面被加载。加载模板后,它将把模板中的元标签嵌入到索引中。html文件。

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

谷歌或任何其他搜索引擎是否能够读取这个页面的描述和被动态插入的关键字元标签?

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.

我之所以问这个问题,是因为我听说很多搜索引擎都不支持javascript,不过,当在谷歌的网站上获取一个预览截图时,它会显示包含整个布局的页面(在插入template.html之后),这让我很好奇。

Thanks in advance

谢谢提前

2 个解决方案

#1


3  

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将HTML添加到DOM已经显示可以使用谷歌的爬行。所以真正的问题是,使用这种方法是否仍然适用于元标记标记。您将需要运行您自己的测试,因为似乎以前没有人对此进行过案例研究。

#2


0  

The simple answer is NO! Most search engines dont crawl over links or words dynamically added by javascript!

简单的答案是否定的!大多数搜索引擎不会抓取由javascript动态添加的链接或单词!

#1


3  

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将HTML添加到DOM已经显示可以使用谷歌的爬行。所以真正的问题是,使用这种方法是否仍然适用于元标记标记。您将需要运行您自己的测试,因为似乎以前没有人对此进行过案例研究。

#2


0  

The simple answer is NO! Most search engines dont crawl over links or words dynamically added by javascript!

简单的答案是否定的!大多数搜索引擎不会抓取由javascript动态添加的链接或单词!