Google的抓取工具索引是否异步加载了元素?

vov*_*man 4 javascript asynchronous web-crawler google-crawlers

我已经为加载页面后异步加载的网站构建了一些小部件:

<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.com/myjavascript.js";
                var s = document.getElementsByTagName("script")[0];
                s.parentNode.insertBefore(ns, s);
            })();
        </script>
    </body>
</html>
Run Code Online (Sandbox Code Playgroud)

是否有通知Google的抓取工具仅在页面完全加载后(在异步JavaScript修改HTML后)索引页面?

Dar*_*ous 6

不需要.您必须为异步内容设置静态镜像页面.请参阅此处:http: //code.google.com/web/ajaxcrawling/docs/getting-started.html