javascript - 困惑 - html5 history api 和谷歌爬虫?

标签 javascript html history.js html5-history

根据 Google crawling, AJAX and HTML5 ,google 可以抓取使用 history api 的动态页面,但它说 google 不会在该页面上执行任何 javascript。对我来说,这意味着不会进行 ajax 请求和 dom 构建,因此谷歌将无法索引加载页面的内容。任何人都可以详细说明吗?

最佳答案

正如答案中所写,您需要为机器人提供硬链接(hard link)

就像没有 JavaScript 的用户一样对待它。你应该支持没有 JavaScript 的用户。随意实现 <noscript>标签。

关于javascript - 困惑 - html5 history api 和谷歌爬虫?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15099421/

相关文章:

javascript - History.JS - replaceState 追加

javascript - 如何在 history.js 中使用正斜杠而不是哈希 (#)?

javascript - 您可以在 Internet Explorer 上捕获这些单选按钮事件吗?

javascript - Node js mongodb 中的异步/等待处理错误

javascript - 如何从内容脚本访问事件选项卡的事件处理程序?

javascript - 无法检查特定的父元素

html - 如何将导航栏品牌放在 twitter bootstrap 的右侧?

javascript - jQuery 按索引不一致的值过滤对象

javascript - jQuery : How do I get the current id of the element I have clicked on and change it’s name?

javascript - 在 Chrome/Safari 中使用 History.pushState 复制历史条目