Wait for page to load completely
See original GitHub issueIs your feature request related to a problem? Please describe.
When taking a screenshot of a Storybook page, there are often elements missing, as the
window.load
event loads before all of the stories have rendered.
Describe the solution you’d like It would be great if there was an event that was emitted or a selector that I can rely on to determine if all of the stories on a given page are have finished rendering and there are no more outstanding XHR requests and the page is fully painted. Is there an event I can subscribe to that Storybook emits when this state has been achieved?
Describe alternatives you’ve considered
Listen for window.load
event, which is fired before any storybook events have been rendered.
Are you able to assist bring the feature to reality? No
Additional context I’m using Chrome (via remote developer protocol) and Firefox (via Selenium) currently. I’m not sure if that matters.
Edit: change DOMContentLoaded
to window.load
to accurately represent the situation.
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (2 by maintainers)
This question still stands, robot.
Hey there, it’s me again! I am going close this issue to help our maintainers focus on the current development roadmap instead. If the issue mentioned is still a concern, please open a new ticket and mention this old one. Cheers and thanks for using Storybook!