Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃殌 馃悰 [amp-story-player] show() improvements #30085

Merged
merged 6 commits into from
Sep 24, 2020

Conversation

Enriqe
Copy link
Contributor

@Enriqe Enriqe commented Sep 1, 2020

Closes #28987

Simplifies logic by:

  • Checking if navigated story using show(story) has iframe
    • if it does, just reposition the iframe
    • if it doesn't, detach iframe and allocate to new current story.

It also leverages new loading strategy introduced in #29703 to prioritize loading the current story over the adjacent ones.

@google-cla google-cla bot added the cla: yes label Sep 1, 2020
@Enriqe Enriqe marked this pull request as ready for review September 1, 2020 20:51
@Enriqe
Copy link
Contributor Author

Enriqe commented Sep 15, 2020

PTAL when you get a chance :)

@Enriqe Enriqe merged commit 1e5d976 into ampproject:master Sep 24, 2020
ed-bird pushed a commit to ed-bird/amphtml that referenced this pull request Dec 10, 2020
* simplify and improve show()

* leverage new loading strategy

* update todo

* restore todos

* update tests

* sort storyIdsWithIframe_ on each rotation, clean ups
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[amp-story-player] show() callback improvements
4 participants