Page Weight Matters (2012)
blog.chriszacharias.com
blog.chriszacharias.com
- Creators and tech-savvy people are able to cut out the bloat and enjoy a fast and secure web because they live in rich countries with good infrastructure
- The average user. Ironically the first group creates the bloated web to extract money from the average user. The average user in rich countries can count on the infrastructure to have at least an acceptable browsing experience.
- People in poor countries like Africa, which need to count on browsers like Opera to compress the web, to make it usable at all. Even with compression techniques everything is still a struggle, because the average size of web pages seems to increase more and more.
> ... somehow the numbers were showing that it was taking LONGER for videos to load on Feather. ... I was just about to give up on the project, with my world view completely shattered, when my colleague discovered the answer: geography.
If the colleague hadn't had that hunch, he might really have given up and changed his world view - and we might have an "actually, studies at google show that lean pages are bad for latency" meme going around now, keeping people from fighting page bloat.
I don't want a proxy. I want a headless browser on a server somewhere and a head in my pocket. Something like Ember Fastboot, but for everything. Ideally it could reduce image size via aggressive lossy compression.
When I'm travelling around the most frustrating thing is not being able to browse the web on my phone because websites are garbling down 5mb a load and opening up a bunch of tracker connections.
You could even use fairly complex, modern web-apps on old feature phones this way.
curl https://service.prerender.cloud/screenshot/https://google.com/ > out.jpg
and a chrome extension that doesn't return a screenshot, but:1. disables JavaScript 2. pre-renders the site (executes the JS) 3. returns HTML
https://chrome.google.com/webstore/detail/prerendercloud-dis...
https://github.com/sanfrancesco/prerendercloud-chromeextensi...
1. (And this is obvious, I know, but...) I want to run your stack on my own gear.
2. I want this to work on my phone, which is, unfortunately an iPhone so browser extensions are blocked by Apple policy. I'd have to create my own browser. Yuck.
As an aside, are you caching public tweets, etc, by any chance?
1. a configurable cache per URL that defaults to 5-minutes (can be disabled or increased up to 1 month)
2. and non-configurable http caching within chrome (cache-control headers), but since the cluster is auto-scaled, this cache naturally purges every few hours.
Discussed in 2012: https://news.ycombinator.com/item?id=4957992
And in 2015: https://news.ycombinator.com/item?id=10393930
> [...] I am pretty sure that graphing this out and we find the end of the web occurs sometime in 2018 when page designers and their bosses and engineers and marketing pukes have so larded down pages that the net runs out of available bandwidth and any page takes 4:33 to load.
Most of the time seems to be waiting for servers to respond, what probably means the bottleneck is on ad-network CPUs.
Of course, at the normal web (outside of those "professional communicators" pages) things are much better.
A problem easily avoided by never making any requests to those servers in the first place. Block them at the point of ingress to your network (your router at home), on the clients (using /etc/hosts or equivalent) and by using blocking software in your browsers (uBlock et al). No ads, no problems.
It will invariably also mean no access to some sites which either detect ad blockers (...which can be defused using ad-blocker detectors, this is a bit of an arms race) or depend on resources from ad servers (rare for now). You can either make exceptions for those sites or just live without them.
Perhaps the vast majority of Internet consumers is actually ok with the status quo.
Older and non-technical people are just as vexed by bloated pages as anybody else, but without the language to describe the problem, they seem more likely to blame the reliability of their connection or even the age of their hardware rather than the poor design choices that web authors make. I've saved multiple people from replacing their "old" phones by showing them how to toggle javascript.
Turns out it's not viruses, it's ever increasing website bloat that very quickly renders reasonable machines unusable. A good portion of it can be eliminated by installing an ad blocker, but this still makes people throw away perfectly good machines, because companies on the web don't care about user experience.
Given the choice between having the consumer wait 10 more seconds for the page, vs. not knowing whether the ad company screwed them / leaving 1c on the table in data not collected & sold... they'll happily choose to waste someone else's time, every time.