ampproject / ampproject/amphtml

AMP Story Player: Pre render state for non visible stories.

Open
#30,513 7 comments 0 reactions 1 assignee Claimed by @gmajoulet View on GitHub
Stale Type: Feature Request WG: stories
Dominant language
JavaScript
Stars
14.9k
Forks
4.1k
PR merge metrics
No merged PRs in 30d

Description

## Describe the new feature or change to an existing feature you'd like to see
- The goal is to replicate how current social media stories platforms work using the player. For instance instagram, there is a story bubble that once it's clicked the story is just loaded.

## Describe alternatives you've considered
- With the current version, it's not possible to have a pre-render state because it always expects that the story is being viewed in a visible doc. Loading the story with a non-visible doc, eg having `visibility: hidden` or `display: none` creates errors and inconsistencies.
- Ideally, I'd expect that the first story to be pre-loaded first even if it's in a non-visible doc.

- Ref [#28416](https://github.com/ampproject/amphtml/issues/28416)

cc @Enriqe @newmuis

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.