You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Improve LCP of the visible Story when using the show() method on the non first Story.
Calling show() to display the n-th story should be just as fast as displaying the first Story.
How
Loading a Story is using quite some bandwidth, and loading several at once introduces significant delays on the LCP of the visible one.
We should always:
Load the visible story, and wait for storyContentLoaded event, then
Load the N + 1 story with a prerender visibilitystate. No need to prerender the previous one until user tries swiping to it
cc @ampproject/wg-stories
The text was updated successfully, but these errors were encountered:
Objective
Improve LCP of the visible Story when using the
show()
method on the non first Story.Calling
show()
to display the n-th story should be just as fast as displaying the first Story.How
Loading a Story is using quite some bandwidth, and loading several at once introduces significant delays on the LCP of the visible one.
We should always:
storyContentLoaded
event, thenprerender
visibilitystate. No need to prerender the previous one until user tries swiping to itcc @ampproject/wg-stories
The text was updated successfully, but these errors were encountered: