christian at agile venture bolzano 2019 christian fei's blog

agile developer, clean code connoisseur && testing aficionado

read more about me or what i am doing now

scroll through posts that i wrote

Build for a slow connection

written on 2019-08-25 by Christian Fei

#post #general 

this

speed matters

kbps.png

trying to work on your pc in 2019 is the worst if you are experiencing a slow internet connection.

you check the network tab and hope that these was the last few bytes downloaded. but no. it was just the beginning.

i'm not gonna even start ranting about web apps with bloated js, that make you wonder who were the geniuses that built that site, and how much they got paid. but they are using react, angular and rx.js, don't worry.

sorry for the waiting

gdrive-offline.png gdrive-slow-2.png

in these scenarios it's best to avoid working on the pc, or instead do something offline if possible.

for your mental sanity.

let's slow down

we need to start thinking with slow internet speeds in mind.

you don't need the new framework or fatty library in your project, drop it.

try to tree-shake your bundle if you are so inclined.

but keep it simple, please.

503

the web breaks sometimes.

requests fail, errors happend. in my opinion error handling is a very neglected topic and it comes to the cost of the end user.

keep it simple

try it for yourself. avoid js if you can even. that would be awesome (this applies especially to blogs).

pagespeed your site, and simulate slow connections. is it still pleasant to browse your site?

check your deps, and choose carefully, it's going to cost a lot in the end.

does your site load below 100ms? can you interact with it within 200ms?


let me know what you think

pagespeed.png

this