admin管理员组文章数量:1317565
I've built some widget for websites which is asynchronously loaded after the page is loaded:
<html>
<head>...</head>
<body>
<div>...</div>
<script type="text/javascript">
(function(){
var ns = document.createElement("script");
ns.type = "text/javascript";
ns.async = true;
ns.src = ".js";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(ns, s);
})();
</script>
</body>
</html>
Is there anyway to notify Google's crawler to index the page only after the page is fully loaded (after the async JavaScript modified the HTML)?
I've built some widget for websites which is asynchronously loaded after the page is loaded:
<html>
<head>...</head>
<body>
<div>...</div>
<script type="text/javascript">
(function(){
var ns = document.createElement("script");
ns.type = "text/javascript";
ns.async = true;
ns.src = "http://mydomain./myjavascript.js";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(ns, s);
})();
</script>
</body>
</html>
Is there anyway to notify Google's crawler to index the page only after the page is fully loaded (after the async JavaScript modified the HTML)?
Share Improve this question asked Oct 3, 2011 at 19:58 vovafeldmanvovafeldman 60512 silver badges17 bronze badges 3- Duplicate of stackoverflow./questions/2434445/…? – Clive Commented Oct 3, 2011 at 20:02
- 1 Don't know the answer to your question, tough your page should have full content and be browsable even without scripts. – Ortiga Commented Oct 3, 2011 at 20:04
- No, it's not a duplicate - it's a different scenario. – vovafeldman Commented Oct 4, 2011 at 13:04
2 Answers
Reset to default 6No. You have to set up static mirror pages for asynchronous content. See here: http://code.google./web/ajaxcrawling/docs/getting-started.html
Things have evolved since then:
- Google crawls and indexes all content that was injected by javascript.
- Google even shows results in the SERP that are based on asynchronously injected content.
- Google can handle content from httpRequest().
(...)
- Dynamically updated meta elements get crawled and indexed, too.
Source: http://www.centrical./test/google-json-ld-and-javascript-crawling-and-indexing-test.html
本文标签: javascriptDoes Google39s crawler index asynchronously loaded elementsStack Overflow
版权声明:本文标题:javascript - Does Google's crawler index asynchronously loaded elements? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742020889a2414648.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论