AngularJS 和 Google SEO 索引
AngularJS and Google SEO Indexing
我不是 SEO 专家,有一次和一个人交谈告诉我 Google 索引,它在 view-source 中,我想知道是否这是真的吗?
我正在开发一个应用程序并使用了 Angle 并且相当高级,我记得并且我想知道这是不是真的。
为什么?我问这个。
因为我在 view-source 中的代码看起来像这样
<article class="uk-article" ng-controller="dataItemHoP">
<h1 class="uk-article-title"><span>Información</span></h1>
<h3 class="uk-article-lead"><span>{{nombreHoP}}</span></h3>
<p><span class="uk-text-bold">Dirección:</span> <br>
<span>{{direccion}}</span><span>,</span> <span>{{ciudad}}</span><span>,</span> <span>{{estado}}</span></p>
<p><span class="uk-text-bold">Teléfonos:</span> <br>
<span>{{telefono1}}</span><span>,</span> <span>{{telefono2}}</span></p>
</article>
虽然在控制台上看起来像 Google
<article class="uk-article ng-scope" ng-controller="dataItemHoP">
<h1 class="uk-article-title"><span>Información</span></h1>
<h3 class="uk-article-lead"><span class="ng-binding">Lidodotel Hotel Boutique</span></h3>
<p><span class="uk-text-bold">Dirección:</span> <br>
<span class="ng-binding">Centro Comercial Sambil, autopista Antonio Jose de Sucre, sector Las Lomas, edificio Lidotel</span><span>,</span> <span class="ng-binding">San Cristóbal</span><span>,</span> <span class="ng-binding">Táchira</span></p>
<p><span class="uk-text-bold">Teléfonos:</span> <br>
<span class="ng-binding">0276 5103333</span><span>,</span> <span class="ng-binding">0276 5103334</span></p>
</article>
¿所以,Google 不会被索引,因为进入视图源正在观察 {{ 表达式}} ?
google 索引器在处理 JavaScript 繁重的站点方面变得越来越好,这些站点需要处理大量 AJAX 操作来引入内容。确实,索引器过去只真正处理您网站的文本表示。不过已经更新了。
In order to solve this problem, we decided to try to understand pages by executing JavaScript. It’s hard to do that at the scale of the current web, but we decided that it’s worth it. We have been gradually improving how we do this for some time. In the past few months, our indexing system has been rendering a substantial number of web pages more like an average user’s browser with JavaScript turned on.
Sometimes things don't go perfectly during rendering, which may negatively impact search results for your site. Here are a few potential issues, and – where possible, – how you can help prevent them from occurring:
作为 pointed out, you should also see Deprecating Our Ajax Crawling Scheme
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. To reflect this improvement, we recently updated our technical Webmaster Guidelines to recommend against disallowing Googlebot from crawling your site's CSS or JS files.
虽然 Gbot 可以读取 javascript 很长时间,但在生产规模上仍然不是很可靠。
作为网站管理员,我们仍在使用 "pre-render" 方法
我不是 SEO 专家,有一次和一个人交谈告诉我 Google 索引,它在 view-source 中,我想知道是否这是真的吗?
我正在开发一个应用程序并使用了 Angle 并且相当高级,我记得并且我想知道这是不是真的。
为什么?我问这个。 因为我在 view-source 中的代码看起来像这样
<article class="uk-article" ng-controller="dataItemHoP">
<h1 class="uk-article-title"><span>Información</span></h1>
<h3 class="uk-article-lead"><span>{{nombreHoP}}</span></h3>
<p><span class="uk-text-bold">Dirección:</span> <br>
<span>{{direccion}}</span><span>,</span> <span>{{ciudad}}</span><span>,</span> <span>{{estado}}</span></p>
<p><span class="uk-text-bold">Teléfonos:</span> <br>
<span>{{telefono1}}</span><span>,</span> <span>{{telefono2}}</span></p>
</article>
虽然在控制台上看起来像 Google
<article class="uk-article ng-scope" ng-controller="dataItemHoP">
<h1 class="uk-article-title"><span>Información</span></h1>
<h3 class="uk-article-lead"><span class="ng-binding">Lidodotel Hotel Boutique</span></h3>
<p><span class="uk-text-bold">Dirección:</span> <br>
<span class="ng-binding">Centro Comercial Sambil, autopista Antonio Jose de Sucre, sector Las Lomas, edificio Lidotel</span><span>,</span> <span class="ng-binding">San Cristóbal</span><span>,</span> <span class="ng-binding">Táchira</span></p>
<p><span class="uk-text-bold">Teléfonos:</span> <br>
<span class="ng-binding">0276 5103333</span><span>,</span> <span class="ng-binding">0276 5103334</span></p>
</article>
¿所以,Google 不会被索引,因为进入视图源正在观察 {{ 表达式}} ?
google 索引器在处理 JavaScript 繁重的站点方面变得越来越好,这些站点需要处理大量 AJAX 操作来引入内容。确实,索引器过去只真正处理您网站的文本表示。不过已经更新了。
In order to solve this problem, we decided to try to understand pages by executing JavaScript. It’s hard to do that at the scale of the current web, but we decided that it’s worth it. We have been gradually improving how we do this for some time. In the past few months, our indexing system has been rendering a substantial number of web pages more like an average user’s browser with JavaScript turned on.
Sometimes things don't go perfectly during rendering, which may negatively impact search results for your site. Here are a few potential issues, and – where possible, – how you can help prevent them from occurring:
作为
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. To reflect this improvement, we recently updated our technical Webmaster Guidelines to recommend against disallowing Googlebot from crawling your site's CSS or JS files.
虽然 Gbot 可以读取 javascript 很长时间,但在生产规模上仍然不是很可靠。
作为网站管理员,我们仍在使用 "pre-render" 方法