I'm looking in your direction Medium, at 6MB with a cold cache!
I'm looking in your direction Medium, at 6MB with a cold cache!
It's also worth noting for example that only 1/5th of the data transferred when I load medium.com cold is their JavaScript, so WASM can't really help them either way.
Demo: https://richardanaya.github.io/wasm-module/examples/tinygo_c...
Article: https://medium.com/@richardanaya/hyper-efficient-front-end-d...
Also, the equivalent JavaScript is still a fraction of this size. That's actually roughly the size of Preact, which implements nearly all of React.
I am paid well to do no work, essentially on retainer, because it’s so common for people to dick this up and then blame the technology for one’s own incompetence. Like anything else it only requires a little bit of practice. Running screaming into the night only to bury your head in the sand behind the magnificent glory of favorite pet framework x isn’t practice.
I describe this to nonprogrammers as hating on pianos because there is too much potential for bad music.
To be fair, working in this industry you could have been doing that without doing JavaScript :)
The Big Elixir 2018 - Desmond Bowe - Hot Upgrade Are Not Scary https://www.youtube.com/watch?v=IeUF48vSxwI
https://www.webpagetest.org/result/190426_YD_9088b86bbe21e61...
So WASM is just another bytecode encoding that relatively smaller than JavaScript, without solving the problem from the root.
In contrast, a server-side heavy solution like Phoenix LiveView that has been heavily mentioned in this thread would do hold the logic on the server side, so in the client, there's only very few generic logic handling the DOM patching.