by austinjp · 4y ago · 0 comments
My reaction to this ridiculous situation:
Use Preact instead of React -- I'm planning to switch to Svelte next -- and using minimal dependencies and writing my own minimalist implementations where feasible. I need to get better at this.
Use code-splitting and lazy loading to keep gzipped download under 100k for all content per "page".
Avoid web fonts, images, tracking, 3rd party crap, cookies, advertising, etc etc etc. I'm lucky enough to be in a position where nobody is telling me to put this stuff in.
Tree-shake, minify, compress (brotli if possible). Sure, it takes processing power to decompress at the other end, but my suspicion is overall compression wins. Happy to be proven wrong.
User-test everything on a throttled connection at 3G speeds. Or "poor 3G" or whatever the browser dev tools have. This is subjective, of course, but gives me a good sense of user experience.
It's not a perfect recipe, but downloading megs of crap for a web page is totally unacceptable.
(Obviously all the above side-steps the "no JS" perspective.)
Also in a conference / the train / the beach / driving / any crowded place / in space
No. This is cached if the devs aren't incompetent, the lion's share of information transfer is video streaming, not large JS files.
Your point about video streaming being a far larger amount of data is of course fully valid. But I was replying to a thread about JavaScript.
Solid is currently more oriented towards fully interactive SPA use cases, but they do have partial hydration (or something like it) on the roadmap.