The Website Obesity Crisis (2015)
A lot of what is written in the article holds true, despite its age. For example, let&#x27;s take the tweet as an example:<p>&gt; If you open that tweet in a browser, you&#x27;ll see the page is 900 KB big.<p>If you look at how big the page is now you&#x27;ll get something along the lines of this: <a href="https:&#x2F;&#x2F;gtmetrix.com&#x2F;reports&#x2F;twitter.com&#x2F;aJKMCxUq&#x2F;" rel="nofollow">https:&#x2F;&#x2F;gtmetrix.com&#x2F;reports&#x2F;twitter.com&#x2F;aJKMCxUq&#x2F;</a><p><pre><code>  2.00 MB (7.56 MB uncompressed)
  1.68 MB of JavaScript
  0.18 MB of fonts
  0.08 MB of HTML
  0.04 MB of images
  ... (some other requests)
  (185 total page requests)
</code></pre>
On other sites you see similar amounts of data, though sometimes more custom fonts, or images, or other media.<p>I used to think that this was because the developers just don&#x27;t care, or that designers and product managers go wild (which I still do, admittedly), but in the recent years I&#x27;ve felt more and more that this is because the way browsers work is flawed. Nobody seems to complain (much) that browser X install size is Y MB, yet for whatever reason each site is treated as its unique universe where you often re-download what is mostly the same thing over and over, the wasted bandwidth accumulating over time.<p>Here&#x27;s a slightly crazy thought experiment:<p><pre><code>  - what if all of the frameworks&#x2F;libraries decoupled the framework&#x2F;library code from the application code (e.g. React, Angular, Vue), essentially you&#x27;d have react-version-X.js and my-site-com-app.js
  - maybe even do this for the most popular libraries and component frameworks, like react-primevue-version-X.js
  - what if browsers shipped the most popular framework&#x2F;library code versions in them, so those would never need to be downloaded from the visited sites, but would be available locally already
  - what if browsers did the same for most of the popular freely available fonts, too - enough to placate the designers, say, the top 100 of the most popular fonts under each category (serif, sans serif, monospace, ...)
  - everything else can be downloaded the old way, or maybe browsers can provide a package manager of sorts (e.g. site requested Alpine version X, this will be downloaded and re-used for other sites)
  - maybe mandate that only X updates per year are allowed per framework&#x2F;library or other resource type, to fight off bloat due to trigger happy teams who want to release often
</code></pre>
A little bit like a CDN, except that baked into the browser (or selectable as an install option). Of course, this will never happen, because it would require a lot of work on the part of the browsers, would create an &quot;in crowd&quot; of supported resources with everything else having lower chances of becoming as popular, nor could people ever agree upon what are the most popular resources out there to pre-install. But my argument is that we&#x27;re stuck with the same popular Google Fonts in most sites anyways, as well as a few large JavaScript frameworks that everyone uses regardless, so a lot of the current bloat makes little sense anyways.<p>Then again, one can feasibly also imagine a world where the user is given a choice to only view downscaled images on all the sites that they visit (which, IIRC, was the case with the Opera Mobile browsers a while back) if they want, or a bunch of other simple to use options, like never downloading custom (non-icon) fonts, should they choose to. But that&#x27;s not quite the world that we live in - especially in regards to JavaScript, which you often cannot disable and hope that the site will keep working, because it won&#x27;t.<p>Worse yet, optimizations that are cool and useful, like how Google Fonts splits up fonts into multiple files based on the character sets, so only the ones needed actually are downloaded, are hard to pull off yourself for arbitrary fonts and so on, for example: <a href="https:&#x2F;&#x2F;fonts.googleapis.com&#x2F;css2?family=Open+Sans&amp;display=swap" rel="nofollow">https:&#x2F;&#x2F;fonts.googleapis.com&#x2F;css2?family=Open+Sans&amp;display=s...</a> This last bit is also why my own site is unreasonably bloated (aside from the fact that I chose a non-web-safe font in the first place, to look more like the fancy sites): <a href="https:&#x2F;&#x2F;gtmetrix.com&#x2F;reports&#x2F;kronis.dev&#x2F;l0nIApXL&#x2F;" rel="nofollow">https:&#x2F;&#x2F;gtmetrix.com&#x2F;reports&#x2F;kronis.dev&#x2F;l0nIApXL&#x2F;</a>