Skip to content

I2I: document-level infinite-scroll #12945

@emarchiori

Description

@emarchiori

Objective

Provide publishers the ability to show several articles/document by the user just scrolling (aka infinite-scroll).

Background

Many publisher use this kind of solution in their non-AMP sites to further user engagement by providing related content in the same stream, with no loading times or clicking. The following articles (aka recommendations) can be provided in-line in the component, loaded from a URL or provided by a 3rd party (eventually). To adjust for different client side restrictions, the recommendations could eventually be rendered in different ways, besides infinite-scroll, such as previews or a stream of A2A links.

Details

Suggested name: amp-content-discovery

Initial version will include:

  • Support only inline JSON recommendations
  • Limit number of articles in scroll to 3 or 4, until performance risks can be addressed
  • Update URL and/or title in viewer
  • Add new events in analytics
  • Basic handling of fixed position elements

Features to be implemented later:

  • More sensible management of fixed elements (e.g. refresh sticky ads)
  • Collapsing of repeated or irrelevant elements
  • Ability to hide/unhide elements at the bottom of the page
  • Increase UI configuration options
  • Support dynamic and 3rd party recommendations

Example

Publishers will add a one tag with inline recommendations:

<script type="application/json">
   {
        "recos": [
          {
            "image": "http://example.com/image1.jpg",
            "title": "This is one another article",
            "ampUrl": "http://example.com/article1.amp.html"
          }, ...
        ]
   }
</script>
</amp-X>

amp-infinite-scroll

cc/ @aghassemi @ericlindley-g @dvoytenko

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions