by serial_dev · 1y ago · 0 comments
I think the website is fast and the majority of that JS is for the comment section+recaptcha (that's also for comments?), website works without it, I can tab through things, and the site is accessible, so I don't think that hundred KB of JS is a big "gotcha!".
However, considering barely any comments, I'd honestly just consider removing them, not because I' mind the couple of hundred KBs, but because nobody uses these anymore. All discussion happens on social platforms and forums.
However, I think that it's important to keep in mind that a "Hello World" app in NextJS is around 70kb as well, so I think that anything less than 100kb is pretty forgivable on the modern web. That's a rarer achievement than one would like to believe.
To fully clarify my belief, I use a ~$50 budget phone, and it's rarely the JS that makes the web unusable. It's usually when a website loads multiple advertisements that each contain video tags that I actually notice a degradation in experience.
It didn't. Badly engineered sites suck. Nothing new.
JS also did not properly address the complexity of the web. We didn't have good APIs for manipulating the DOM. We didn't have good APIs for making server requests. We did things like spawn iframes to call XML endpoints that we then transform the result of into HTML via XSLT and then inject that into the DOM.
And, on top of all of this, JS is not performant. It's an extremely footgunny language, too. So we build on top more complexity. Minimizers, linters, static analyzers, compression, obfuscators, and more. These days JS is no longer a scripting language - it has more build steps than a C++ project.
So anyway, now here we are.