大网数据广告活动
网站运营与故障问答

AngularJS application and searchengine optimization, empty Google cached page version

· 52CE 我爱测

I have created a website using AngularJS. I'm not sure this website will be properly indexed by Google and other search engines. The cached Google versions of the indexed pages are white with no content. Please advise - is it a n…

问题原文

原帖链接 · alexanoid · CC BY-SA 3.0

I have created a website using AngularJS. I'm not sure this website will be properly indexed by Google and other search engines.

The cached Google versions of the indexed pages are white with no content.

Please advise - is it a normal behavior because of a very young website or I should use solutions like https://prerender.io in order to improve the visibility in SE?

已采纳解答

原帖链接 · Travis Don Kindred · CC BY-SA 3.0

You definitely want to find/build a backend rendering tool for your initial view. If you view source on those pages, you won't find any meaningful content for the bots to scan. The robots aren't rendering a page, so 90% of what matters is the text content of the HTML file the robot loads.

You'll at the very least want your description and reviews to load (reviews because of freshness and diversity of content). You don't need something complex like prerender. If you have trouble, you can dynamically backend populate the description/reviews in the ui-view without even running angular on the backend. Angular will delete everything in the ui-view on render and replace it with the page, but that's okay as long as you're replacing it with the same content.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Webmasters Stack Exchange
适用范围
以原帖系统、软件版本与发布日期为准(2018-01-02)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。