bdebon / choiceof.dev

Developers have to cope with pretty hard choices every day. This is a collection of the most complex and funny choices. What will be yours?

Home Page:https://choiceof.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Display bug with high latency connection

Kaporos opened this issue · comments

This happened on mobile, but i guess it behaves the same on computer

I was in the train, ans had a pretty bad internet connection.

Poll answers are only pulled from serveur when you vote (i Guess), but if this fetch is not fast enough, you'll see first 100% for you choice with only 1 vote (yours) and then, after a delay it will only adapt with everyone's answers, but it's visually disturbing because it's inconsistant

I'm not sure about the reasons this bug happened i explained before.

Steps to reproduce:
- Have a bad connection
- Vote

To fix it, if i'm right about the reasons, we should pre-fetch résults or block results display until they are fetched

(I'm not able to fix it now by myself mainly because of time, but if no one is interested in it i might take time to solve it)

Have a great day ;-)

I think we should also maybe provide a lower resolution version as a fallback solution,
You can fake a slow connection in the chrome dev tools, should be easy to test