Median webpage size was 2.3 MB in July
httparchive.org
httparchive.org
EPUB with images: 1.7MB
Plain text version, compressed with xz: 1.1MB
You mean 32MB 2040?
web3.js is a super bloated library and will be added more frequently unless a team does a more optimal version from scratch
The issue with the lib is its non-treeshakeable nature. It should be rewritten using ES6 modules.
That doesn't seem so hard, unless I'm missing something. Certainly shouldn't need a full rewrite from scratch.
My point is, it's not just about bloat and having too many features (which are very hard problems to fix); it's often low-hanging fruit that isn't being picked.
ready contract data from the nearest node is a pretty benign and common aspect of what web3 inclusion in a site does. just accessing variables and constants in a cloud data store that can be read for free.
So do screen resolutions, and when you include images and video in the website size it seems reasonable they'll be getting bigger.
I have a 14+ year old laptop with a WUXGA (1920x1200) screen. That is similar to FHD but 16:10 not 16:9 so its a bit higher that FHD (which is the standard today).
Web devs should be building sites that deliver the best assets for the users device, but they often don't and just send the giant images and let the users browser scale them down to fit.
Hence bigger websites.
That said, about 100 KB of that is the Material Icons font (given that I started making it with an older library that still used icon fonts) which doesn't really compress at all, since the whole site with no caching but compression means transferring over just around 300 KB, almost half of which is the fonts.
But if you wanted to make a minimalist page with web-safe fonts, minimal interactivity and simple styling? I bet you could get decent results, along the lines of this (some profanity on the page): https://motherfuckingwebsite.com/ (or one of the dozens of other sites, that gradually add more styling and other elements)
However, once you add any of the larger popular frameworks/libraries to your project, the actual app sizes can grow by quite a bit, for example the most comprehensive comparison that I can find (from 2020) being: https://medium.com/dailyjs/a-realworld-comparison-of-front-e...
Many would say that it's definitely worth it, given how any of these frameworks can make development a bit more easier/structured, though I doubt everyone would necessarily agree (e.g. the complexity of Angular and even React, as well as the fast pace at which they evolve and change).
https://bettermotherfuckingwebsite.com
And
https://evenbettermotherfucking.website
And
My own site returns a page 42.8 KB in size (27.6 KB HTML, 13.8 KB image), which loads in 128mSec, and there are actually quite a few smaller sites than mine.
A 14kb page can load much faster than a 15kb page - https://news.ycombinator.com/item?id=32587740 - Aug 2022 (174 comments)
New tracking library / framework releases?
Apple moved their entire line of laptops to 'Retina' displays?
(increases in median size are highly correlated with the sudden jumps in the # of pages indexed, so they likely started covering different subsets of the web that have a different distribution of page sizes)