The unreasonable effectiveness of simple HTML (2021)
59 points
3 hours ago
| 10 comments
| shkspr.mobi
| HN
JLO64
2 hours ago
[-]
Thinking back to my community college days in 2020 (right before the pandemic!), I used to rock a crappy old dual core laptop with 4GB of RAM running Fedora. Browsing the web was less than ideal and YouTube barely worked. For certain classes (the big hassle was a DB class after I transferred) running the course software was very taxing and I had a harder time with that compared to other students as a result. I remember Zoom barely working on it, but only if I didn't use the camera. I look back at this experience a bit fondly as it made me rely more on the terminal and I shifted away from slow laggy GUIs to TUIs/NeoVim. That said, for most other individuals in that position it really is a big limiting factor for their education.

Recently I was tutoring (for college essays and math) at a local high/middle school and most students browsed the web on their smart phones, but those that didn't were limited to school issued Chromebooks which were ungodly slow. Some of these students served as translators for their parents and I was under the impression that they used these devices to pay bills and for other household tasks as well. This experience is why to this day I try to keep the websites I make light on dependancies (I don't like react) and fast to load (sub 300kb ideally).

reply
tnelsond4
1 hour ago
[-]
You can also get really small file sizes by ignoring frameworks and porting unsupported codecs to wasm.

I ported jbig2 (17kb uncompressed) and codec2 (60kb uncompressed) to wasm which enables me to use really small image and audio files in my web app. I also made a custom read only database and search engine with built-in zstd decompressor (39kb uncompressed). It probably wouldn't run on a psp though.

I like optimizing and making things small. I want to use neural audio codecs for even better compression but the model sizes and compute complexity are major hurdles and muddy the vision.

reply
namegulf
2 hours ago
[-]
You've a point. HTML is plain and simple, works and gets the job done. Presenting on the web (may be a little bit of light css).

Heavy CSS animations, Javascript bloat is what slows down the websites and literally ruins the web experience.

reply
thom
2 hours ago
[-]
I personally think CSS animations are wonderful. I’ve recently returned to dabble in frontend stuff and was delighted with what you could achieve with purely declarative HTML and CSS. I’m finding that you can often match the feel of an SPA with just HTMX and some CSS and I’ve found that simultaneously very satisfying and productive.
reply
hyperhello
2 hours ago
[-]
I would say that what ruins the experience is things not working. If it was an animation or some add on that threw an exception to console and did nothing, it would be fine, but designers and their tool makers want everything to be a giant conversation between microservices, which breaks for odd, undefinable, nonlinear reasons, and requires expensive help.
reply
dadachi
2 hours ago
[-]
I build my apps the same way: mostly server-rendered HTML with a little JavaScript on top (Hotwire on Rails). They're mostly forms and CRUD, and it's worked for years with almost no client-side state to debug. I avoid React when I can. The frustrating part is there isn't much Hotwire or Rails work around these days. Most of the jobs want React.
reply
nayuki
2 hours ago
[-]
Which was quoted in a recent post on the HN front page: https://mohkohn.co.uk/writing/html-first/ , https://news.ycombinator.com/item?id=48475483
reply
tnelsond4
1 hour ago
[-]
http://Bellard.org is peak web design. Change my mind.
reply
kulahan
2 hours ago
[-]
It feels like every week someone discovers that code closer to the metal is faster, and ignores the fact that it’s easier to write higher-level code, and that this is the specific tradeoff everyone is making. Why do these articles keep getting posted? Who is this a revelation to?
reply
sudobash1
1 hour ago
[-]
I don't think of HTML as low level, and I don't think that writing "high-level" web (whatever that is? React?) would be any faster to develop or produce better results for his example.

If you looked at the gov.uk page [1] that he linked, it is clean and readable. It doesn't look hard to me to make, and I don't think it is lacking functionality.

I'll grant that writing web-apps without a framework is going to be harder for many people (especially with all the fancy features that are expected now days), but that is not the point of this writing. This is an argument that the web (especially government services) should be usable on limited devices too.

1 https://www.gov.uk/housing-benefit

reply
kulahan
19 minutes ago
[-]
The article and commenters are both complaining about JS in favor of HTML - I'm really just talking about it in this context.

Anyways, I disagree with the idea that we should make something simple enough for PSPs and car browsers. Just go to a library.

reply
jonchurch_
2 hours ago
[-]
(2021)
reply
jt2190
2 hours ago
[-]
(2021)
reply
righthand
2 hours ago
[-]
Now do the unreasonable effectiveness of an overly ambitious junior dev convincing management to rewrite the who site in client side react.
reply