javascript 模板(又名单页应用程序)和 SEO

标签 javascript seo single-page-application

我确信除非服务器提供替代内容,否则单页应用程序无法被谷歌抓取。

阅读这篇文章让我觉得虽然这是真的,但现在认为 javascript 模板阻止谷歌抓取是错误的:https://googlewebmastercentral.blogspot.fr/2015/10/deprecating-our-ajax-crawling-scheme.html

Times have changed. Today, as long as you're not blocking Googlebot from crawling your JavaScript or CSS files, we are generally able to render and understand your web pages like modern browsers.

我使用示例应用进行了测试。使用此工具:https://www.google.com/webmasters/tools/googlebot-fetch?utm_source=support.google.com/webmasters/&utm_medium=referral&utm_campaign=6155685

它起作用了:谷歌看到了我的内容(它的呈现是由一个 jquery 插件触发的,等待 dom 文档就绪事件以使用 handlebarjs 呈现内容)

那么问题来了:2016 年的最新技术水平如何? (又名:谷歌引用的单页应用程序,有缺点吗?)

最佳答案

我的一个队友告诉我的,我引用他的话,对他的评价没有任何意见:

I saw on a podcast who ran test showing that the results are inconsistent : one time the page is corectly indexed, the oter time it is not. IMHO Google is able to read JS pages but it consume too much ressources so it is not systematicly done. Beware also, they annouced that they was going to stop indexing not visible content like those shown on click/rollover

To conclude : I think that those pages are indexed but with a lower score.

关于javascript 模板(又名单页应用程序)和 SEO,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35451822/

相关文章:

javascript - 在定义后向对象添加属性?

seo - robots.txt 格式禁止所有子 URL 但不允许根 URL 本身

SEO 页面排名 - 关键词倒序(blackcat.com vs cat black.com)

knockout.js - 不能设置集合导航属性

c# - 从 C# 程序集中执行 JavaScript

javascript - jQPlot - 删除垂直网格线

SEO指定页面内容类别类型

c# - 将 Active Directory 与用于 SPA 的 Web API 结合使用

javascript - twitter 如何在不重新加载页面的情况下更改 url?

javascript - 使用 javascript ...cefsharp 从 Form1 (winform c#) 打开 Form2