There's a furniture chain here that has a website so terrible, I just gave up on trying to buy what I wanted from them. So much happening in JavaScript to make things happen on the page. I have to imagine it's also terribly written, since it freezes up the tab most of the time, and Firefox suggests killing the script.
I have an extension on my Firefox to always load the old reddit. There is an account-specific setting to always load old reddit, but there are times when I browse without an account.
Now to accept cookie policies you need first to accept being redirected into the new site, and then manually return to old version.
I bet in about one year time the old is gone.
If you drop support for MSIE 11 and only support modern browsers the modern javascript is surprisingly compact.
But then your CV looks stupid: no frameworks on the list. How would you ever get a job again?
How do you get any respect if you say "I just code javascript directly on the browser", sounds like you're too stupid to learn a framework.
You will only get respect from the very best developers but not all the copy/paste 'developers', no respect from the HR department nor mediocre managers.
It's an uphill battle.
React is about 110kB. Vue is 33kB. It's perfectly possible (and really not that hard) to write fast, small web apps with the big popular JS frameworks. It's the thoughtless stuff people do—pulling in huge libraries for tiny features, mandating the use of huge analytics packages, etc—that cause the bloat.
Whether it should all just be server-rendered is a whole other argument, but if you're going to build something the size and scale of reddit as a client-rendered app, you'd be crazy to not use one of the existing frameworks IMO. If for no other reason than you're likely to end up just re-creating a worse version of them.
But a lot of the complaints in this thread boil down to modern sites being slow to run on computers that are only a few years old. If modern frameworks are to blame for that, it's not because they're a hundred (or more) KB. It's because they require the end user to run way more Javascript in the browser and consume far more memory than a site with minimal Javascript requires to accomplish the same thing.
As a random example, Firefox's about:performance page says that the three YouTube tabs I have open are each consuming about 50 MB of my computer's memory. That's obscene. (None of the tabs are open on a video, so this is not the result of storing videos in RAM.)
Also, I did a Lighthouse analysis of the Reddit home page in Chrome (on Desktop, but targeting mobile). The page scores less than 20/100 on performance, and takes almost twenty seconds to become interactive!! The biggest problem Lighthouse sees with the page is not the file size, but the amount of Javascript being executed. There's ~25 seconds of "main thread work" being done in my test.
On the contrary, I'm pretty sure you could make Reddit a usable site in everything down to text-based browsers (static HTML + small bits of JS), and still have it be faster and smaller than what the new version is today.
"Modern" development is a horrible bloated mess.
I agree with the rest of your comment, however; and perhaps the solution is to not hire only "web developers", as those whose full-time job isn't to work on that stuff seem to be far better at not adding "padding" for the sake of "CV-driven development", when they are actually asked to work on websites.
I've had a few experiences with that: https://news.ycombinator.com/item?id=23590137
Some of the cause of all this has to do with market forces and prioritizing speed of development over customer experience. But I don't think that's the whole story.
1.3mb seems optimised to me at first glance
VLC is one of the more complex programs out there, and yet the VLC binaries and the libvlc libraries they ship with total only 1.295 MiB on my computer.
The main application for Scid, a chess database program, is only 1.1 MiB. (The program also comes with a simple test chess engine and some opening books, so the overall package is somewhat larger.)
The binary and libraries for hexchat, an IRC application, total 1.22 MiB.
The program files for Pinta, an image editing program, come in right at 1.3 MB.
The vast majority of programs are under 10 MiB total. Moreover, I've tried to pick relatively full featured desktop apps, and desktop apps as a rule do more than any 1 MB web page. And these applications come in highly compressed archives, which means that their download size is often significantly less.
Furthermore, I would argue that web pages are rarely comparable to applications. When you're browsing Reddit, if the home page is 1.3 MiB on mobile, chances are the first individual post you click on is also going to be 1.3 MiB, and the one after that, and so on. You don't get the benefits of Reddit by downloading an "application" one time and getting tiny updates after that. If you're lucky most of the libraries being pulled in will get cached, but frequently it doesn't work out that way. On desktop Reddit, a warm refresh of the site still used more than 2.5 MiB for me, and that's with an ad blocker enabled.