browsh-org / browsh

A fully-modern text-based browser, rendering to TTY and browsers
https://www.brow.sh
GNU Lesser General Public License v2.1
17.05k stars 416 forks source link

First renders are sometimes incorrect #39

Open tombh opened 6 years ago

tombh commented 6 years ago

When this happens it kind of reminds me of old cathode ray TVs turning on/off.

It's problematic for slow connections that have to send the incorrect rendered data over the wire, only to later settle on the final frames. Ideally we need to figure out why these incorrect renderings happen. If not then there needs to be a grace period where unstable frames are not sent.

My only clue is that it is caused by inconsistent dimensions and unfinished browser resizes.

tombh commented 6 years ago

Also worth bearing in my mind that initial page loads sometimes pre-fill with the black/grey checkered background. Again this is also unnecessary image data being sent over the wire.