Dynamic content - fetching JSON data on page load

There are many uses cases for being able to retrieve content dynamically. For example, we might want to display a cart summary like we saw in the last chapter. Or on a product page, we might want to pull in a list of related products. On an article page, we might want to pull in a list of comments. AMP provides a very useful tool to help achieve these goals: amp-list.

Get AMP: Building Accelerated Mobile Pages now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.