top | item 46144513

(no title)

Snoozus | 2 months ago

Maybe it's time we make a simple web page 100KB again? Is there some kind of CDN minification, adblocking and compression service? Maybe even server side rendering of websites?

Then a smartphone would work fine with 1GB of RAM and everyone could be happy.

discuss

order

Maxion|2 months ago

Simple web pages can be made small with modern tooling, e.g. AstroJS.

The problem is that most web pages these days fundamentally are not simple.

Rather than trying to make web pages small, the real effort would be in designing web pages to be simple.

The large majority of software devs, PMs and the like don't really know how to do anything else than a Node + React webapp.

sksksk|2 months ago

I've come to the opinion that for the vast majority of apps I've built, it could all be built using HTML + CSS (all built server side). I can sprinkle in little bits of interactivity using something like HTMX. And I'll have a website that is very easy to optimise, has phenomenal backwards compatibility, and gets rid of a whole class of issues associated with SPAs.

I often regret in my career not pushing back more on "requirements" that ended up requiring a more complicated app, whereas the customer would have been happier with a simpler solution.

Snoozus|2 months ago

I agree, most websites allow complex flows. But I suspect, that most loads don't ever touch those. There is probably an automated way to deliver just a flat page, and maybe even allow for the top 5 interactions without loading all the frameworks and libraries.

yourusername|2 months ago

And if someone could make a chat program not use 1 GB of RAM that would be great.

m-schuetz|2 months ago

The majority of space is usually ads and I doubt websites want to reduce that.

immibis|2 months ago

Apple could make it happen. For some reason when an iPhone won't load something, people blame the thing instead of the phone. If they made Safari show an error page when a page used more than 256MB of RAM, suddenly the problem would disappear overnight.

M95D|2 months ago

> 1GB of RAM and everyone could be happy

I remember a time when I was surfing the web with 256MB and a 5KB/s modem.

oblio|2 months ago

True, but I don't want to go back to that. Bloated web pages suck. But hi-res, true color images and videos don't suck.

tim333|2 months ago

I was a bit shocked the other day when Chrome gave me a complaint about memory shortage and said I had something like 200GB in website data on my 256GB laptop(!) All put there by various web pages without my knowledge.

venturecruelty|2 months ago

Maybe it's time to not let a single company buy all the RAM.

markbao|2 months ago

Most people have phones that can handle webpages with 1-5MB JS bundles. Why artificially limit what you can do on the web? Why limit ourselves to 1GB RAM when more resources means tech becomes more useful?

Returning to simple webpages is popular idea on HN but it’s like wanting a car with no backup camera and crank windows. If your goal is to have your car be as simple as possible, then sure, but that’s not the case for most people.

Most people want their cars to be safe and convenient, and their webpages useful and rich, more so than they want to return to some idealized simplicity.

A simple webpage or blog with minimal styling that runs as an ARM binary on a TV remote is cool and fun but it’s not economically useful. It’s the equivalent of a manual scooter. We can build better apps (in the same way that car manufacturers can build less crappy infotainment systems) but optimizing for scarcity isn’t the answer in a world where abundance tends to grow.

(Edit: your downvotes mean nothing to me, I’ve seen what gets upvoted!)

kortilla|2 months ago

Your mistake is assuming there is some correlation with usefulness and size.

The JS Gmail UI from 15 years ago was just as functional as the one today.

Websites that are supposed to be simple lists end up bloated and laggy because of really poor JS that makes one request per item iteratively to populate a list.

capyba|2 months ago

I’d argue that in many of these instances, less is far more.

I want my car to just be really good at being a car, reliably get me from A to B. A Bluetooth connection to the stereo system is nice, but I don’t need a freaking 20” phablet right next to my face when I’m driving.

When I go to a website, I’m usually looking for information, to read something. I don’t often want fancy scroll and animations, I just want clear readable text free of distractions.

More and more these two examples seem to be going away, we’re losing the plot of what the point of these things are.

suddenlybananas|2 months ago

You can do a lot with little, it just requires investing more in development which understandably most companies are uninterested in. Besides, plenty of websites are bloated as all hell. Why does a newspaper website, for example, have to be very much more than plain html?

jdthedisciple|2 months ago

Actually a plain car would be great

I crank the window up and down 3x faster than the little button

And I could adjust my damn seat before electricity is available... sigh