ampproject / ampproject/amphtml
[amp-story] Render timeout even when render is not requested
- Dominant language
- JavaScript
- Stars
- 14.9k
- Forks
- 4.1k
- PR merge metrics
- No merged PRs in 30d
Description
### Description
If I start a story in visibilityState `inactive` or `hidden`, if I wait too long to set it to `prerender`, I will get an error `Render timeout waiting for service amp-story-render to be ready.`.
Then, if I set it's visibilityState to `prerender`, it won't work.
### Reproduction Steps
On this sandbox, you can try to change the story visibilityState : https://z9ce0.csb.app/
- wait for console Error `Render timeout waiting for service amp-story-render to be ready.`
- change visiblityState to prerender
compare to
- change visiblityState to prerender before console Error `Render timeout waiting for service amp-story-render to be ready.`
### Relevant Logs
_No response_
### Browser(s) Affected
_No response_
### OS(s) Affected
_No response_
### Device(s) Affected
_No response_
### AMP Version Affected
_No response_
Contributor guide
Research direction
Start with the reproduction sandbox at https://z9ce0.csb.app/ and observe the amp-story visibilityState transition from inactive or hidden to prerender after the timeout. Trace the amp-story render lifecycle around the `amp-story-render` readiness timeout. Done means setting visibilityState to prerender after the timeout works without the reported error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100