October 2017
Intermediate to advanced
370 pages
8h 57m
English
The size of an amp-list must be specified in advance. This might cause an issue when you don't know how much JSON data will be returned from a server endpoint. The AMP documentation recommends to give enough space for at least one item. AMP will then try to assign more space as needed. If the amp-list is near the bottom of the page, then it will usually be able to assign more space.
You can also include an overflow element that will be displayed in the event that AMP can't assign more space automatically with markup like this:
<div overflow role="button" aria-label="Show more" class="list-overflow"> Show more</div>
Read now
Unlock full access