6

I am working on my first full stack javascript application using specifically mean.js as my start point, and I have started to become nervous and somewhat confused around the issue of search engine optimization (SEO).

Has Googles recent efforts (within last year or so), to improve javascript crawling rendered this a non issue, or is this something I need to take account of in the planning and structuring of my project?

If Google can crawl AngularJS/Ajax heavy applications now, why are we getting blog posts about solutions to the SEO issue: http://blog.meanjs.org/post/78474995741/mean-seo

  • Is this type of solution necessary.
  • Is this going to be as effective as server side rendering in terms of SEO.
  • Are hash bang (#!) urls a necessary evil or just plain evil.

I know questions about SEO and AngularJS have been asked before, but there seems to be so many differing opinions on this issue that I am lost, and it would be nice to have some thoughts that are more mean.js specific. My major worries are:

  • If building a angularjs heavy implementation will make it an SEO black hole.
  • If I will end up building practically the whole project again in static files just for SEO
  • If I need to be looking at a server side rendering solution.
4

3 回答 3

5

如果您使用 JavaScript 呈现大部分内容,那么是的,它会成为搜索引擎的黑洞。这是胖客户端应用程序的一大缺点。如果您需要搜索引擎的高知名度,这是一个挑战。有一个中间立场。

您需要结合使用服务器端渲染和客户端渲染。当页面第一次加载时,它应该包含用户需要的所有可见内容,或者至少是出现在“首屏”(在页面顶部)的内容。链接应该是描述性的,并允许搜索引擎更深入地了解该网站。您的网站的主菜单应该与网页一起提供,同时让搜索引擎有一些可以咬的东西。

首屏内容或分页内容可以动态拉入并使用任何 JavaScript 框架在客户端上呈现。这为您提供了服务器端渲染以提供搜索引擎的良好组合,以及动态拉入内容可以提供的性能提升。

于 2014-11-26T13:40:48.693 回答
1

好吧,您需要担心您网站的公众形象,您不应该被视为登录屏幕背后的任何东西,对我来说,使用 farment_scape 的无头浏览器方法的快照似乎是要走的路,这是一个将消耗更少时间的方法,正如您所看到的那样 mean-seo 并不难实现。

看看这个问题,有一些关于如何在页面上创建对 SEO 友好的链接的答案,几乎所有最近的帖子都相互吻合。

https://support.google.com/webmasters/answer/174992?hl=en

并尝试注册到https://webmasters.stackexchange.com/你会发现更多关于 seo

于 2014-11-26T14:05:46.710 回答
0

只是想提一下这个 npm 包https://www.npmjs.com/package/mean-seo它使用 PhantomJS 来呈现您的应用程序的预览并将其缓存在您设置的任何时间段的磁盘/redis 上。

于 2016-06-14T23:05:02.090 回答