-
Notifications
You must be signed in to change notification settings - Fork 229
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Delay loading state to reduce bounce & Manually move user focus on 2nd article view #1302
Comments
I guess this one would need an a11y swarm/review. |
Accessibility acceptance criteria: Given I use a screen reader Full accessibility acceptance criteria for routing: Given I am viewing the simorgh application Given I use a screen reader Given I use a screen reader Given I use a screen reader Given I am viewing the simorgh application Given I use a screen reader |
Is your feature request related to a problem? Please describe.
When we load a new article we should delay showing the loading state to reduce visual bounce. We need to set the delay to a value that allows for some network lag, but doesn't feel like the page isn't responding.
In doing this, there is a chance the loading screen is never seen. This causes issues when transferring from 1 article to another seamlessly, as react will try to convert the article, not reseting the user focus.
Describe the solution you'd like
Add a delay to showing the loading state.
Manually move the user focus when transitioning to a loading screen or new article.
Testing notes
On slow network when clicking on an inline article page from an article page its expected that the page loads after some delay and if the data doesn't fetches then should see a error page.
Dev insight: This can be simulated using the chrome dev tools slow network connection.
Additional context
This isn't to make the loading screen itself, it can remain simple text. The loading view itself will be handled by #1248
The text was updated successfully, but these errors were encountered: