seed-rs / seed-rs.org

Seed's official website
https://seed-rs.org/
Other
14 stars 40 forks source link

Do not show blue panel while loading #54

Closed akhilman closed 4 years ago

akhilman commented 4 years ago

Delay appearance of the warning message with CSS animation to avoid blinking.

Solves #53

MartinKavik commented 4 years ago

"This is a pre rendered page. Please make sure your have a browser with WebAssembly support and JavaScript enabled to get all page functionality."

akhilman commented 4 years ago
* What if your internet connection is slow? A think there is missing something like `Loading...`.

The "Loading..." message will also be misleading if the javascript is disabled.

* Is information  _"This is a pre rendered page."_ valuable for users?

May be not. Is there a clearer wording?

* It should be "floating above" the website to prevent content jumping once the panel is hidden.

A floating message should have a close button and can become even more annoying. If a static page is displayed, this message will appear again when clicking on the link. We do not have JavaScript to save the state of the message.

* What problem are we resolving with this solution? I expect that our target audience - developers - has the latest browser and JS enabled.

My friend opened seed-rs.org in the SeaMonkey browser, this browser does not support WebAssembly. He complained that the button for changing the dark / light mode does not work, and also the search field does not respond to the entered text.

The main goal is to inform the user about the reasons for the page not working correctly.

akhilman commented 4 years ago

Maybe something like this: """ Loading... If this message does not disappear for a long time, make sure you have a browser with WebAssembly support and JavaScript enabled. """

MartinKavik commented 4 years ago

Loading... If this message does not disappear for a long time, make sure you have a browser with WebAssembly support and JavaScript enabled.

Can be. I'm pretty sure that Loading.. will be the common case. Imagine phone not connected to Wifi.

MartinKavik commented 4 years ago

A floating message should have a close button and can become even more annoying.

It's fact that it would prevent reading the content. Ok, we'll polish it during the next website redesign.

MartinKavik commented 4 years ago

Please squash commits and I'll merge it once I'm back home.