Your Website Is Heavier Than You Think
Open almost any modern website with your browser's developer tools on the Network tab, reload, and look at the total at the bottom. For a page that's mostly text and a couple of pictures, the number is often startling. Many megabytes. Dozens or hundreds of separate requests. To show you an article you could have printed on two sheets of paper.
That total is the page weight, and it's the single most common reason sites feel slow. Your server can respond in a few milliseconds and the page can still take ages, because the browser then has to fetch, unpack, parse and run everything that came along with it.
So where does it all come from? In my experience it's usually the same handful of suspects.
Images are often the biggest chunk by size. A photo straight off a phone or camera can be several megabytes and thousands of pixels wide, then gets displayed in a box a few hundred pixels across. The browser downloads every one of those extra pixels and throws most of them away. Resizing to the size you actually show, using a modern format, and adding loading="lazy" to images below the fold fixes a huge amount of this.
JavaScript is the expensive one, even when it isn't the biggest. An image just needs to be decoded. JavaScript has to be downloaded, parsed, compiled and executed, and while it's running, the page can freeze up. On a fast laptop you barely notice. On a mid-range phone, it's the difference between a page that responds and one that ignores your taps for a few seconds. Big frameworks for pages that barely need interactivity, whole libraries pulled in for one small function, and code for features that most visitors never use all add up.
Third-party scripts deserve their own line, because they're where weight sneaks in without anyone deciding to add it. Analytics, ad networks, chat widgets, A/B testing tools, social embeds, heatmaps, tag managers that load more tags. Each one is "just one script," and each one often loads several more from other servers you don't control. They're also the hardest to fix, since every one of them was added because somebody wanted it.
Web fonts are lighter than people fear but still worth watching. Loading four weights of two families, each with every character set, adds up. Pick fewer weights, use the woff2 format, and consider whether a system font stack would honestly be fine.
Video that autoplays in the background is a big one when it shows up. A decorative looping clip in a header can outweigh everything else on the page combined.
There's also the stuff that isn't weight exactly but still slows things down. Lots of separate requests to lots of different domains, each needing its own connection setup. Render-blocking CSS and scripts in the <head> that make the browser wait before it can draw anything. Things loading late and shoving the content around, so you go to tap a link and hit an ad instead.
If you want to know where your own site stands, the tools are free. The Network tab will show you every request, sorted by size. Lighthouse (built into Chrome's developer tools) and PageSpeed Insights give you a breakdown and suggestions. WebPageTest lets you test from different locations and on slower connections, which is a humbling and useful thing to do. Testing on a throttled connection and a cheaper phone, rather than your fast desktop on fiber, is the most honest picture you'll get.
My opinion: the fastest request is the one you never make. Before reaching for clever optimizations, go through the list of what the page loads and ask of each thing whether it needs to be there at all. Deleting a third-party widget nobody looks at will beat any amount of compression tuning.

Comments