简体   繁体   English

Google AMP:放大器清单与PHP循环-SEO / Pagespeed

[英]Google AMP: amp-list vs php loop - SEO / Pagespeed

My AMP page serves a list of reviews. 我的AMP页面提供评论列表。 Each review is an amp-accordion in order to implement nice read-more features. 每个评论都是一个amp手风琴,以实现出色的阅读功能。

I am currently in debate whether or not to load the reviews straight into the DOM (php loop) or load them through a JSON file (amp-list). 我目前正在辩论是否将评论直接加载到DOM(php循环)还是通过JSON文件(amp-list)加载。

When I compare the two versions of this page, amp-list wins big in DOMContentLoaded and Load, but they are tied in Finish with a small favor towards the php loop version. 当我比较此页面的两个版本时,amp-list在DOMContentLoaded和Load中获胜,但是在Finish中它们却与php循环版本有一点关系。

Assuming the php loop version would be completely AMP-Cached, and amp-list would have to poll the stack for the data, which version would be better for overall user experience / seo ? 假设php循环版本将完全被AMP缓存,并且amp-list将必须轮询堆栈以获取数据,那么哪个版本更适合整体用户体验/ seo?

Thank you! 谢谢! :D :d

I think it bases on your purposes. 我认为这取决于您的目的。 Currently google bot cannot crawl the data which lazyloading so I think amp-list not good for SEO. 目前,Google bot无法抓取延迟加载的数据,因此我认为amp-list对SEO不利。 But Its good for loading time when user or bots landing which also help for SEO. 但是,这对于在用户或漫游器着陆时加载时间很有用,这也有助于SEO。 My solution is just load only best stuffs for google bot seeing first which minimum version as possible. 我的解决方案是只加载google bot的最佳内容,首先查看哪个最低版本。 Later then when page loaded you can replace with fully version. 然后,当页面加载后,您可以替换为完整版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM