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?
https://choiceof.dev
GNU General Public License v3.0
473 stars 93 forks source link

Display bug with high latency connection #141

Open tdaron opened 1 year ago

tdaron commented 1 year ago

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:

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 ;-)

hexadeciman commented 1 year ago

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