Every few months, somebody posts this motherfucking website to Hacker News.
And each and every time, it seems to head straight to the front page.
The project is a joke, and opinions in the comments tend to be split, but it addresses an important point: bloat is still a huge issue, despite the fact that the developer community has been talking about it for 20+ years.
In fact, it’s getting worse. The average web page these days is over 2MB in size:
I know, I know: I’m beating a dead horse. There’s no shortage of people complaining about load time in developer communities.
But that’s the problem: complaining isn’t going to do anything about it. We hide behind arguments like “I just build what my clients/bosses tell me to.”
And while it’s promising that marketers are beginning to care about load times and their impact on the bottom line – which is massive, by the way — we need to do our part in moving things along, too.
Developers Should Give A Damn, Too
Developers should give a damn about making decisions that make our sites (and the web, in general) faster, more powerful and more pleasant to use.
And not just when our bosses and clients give a damn.
If you’re just learning web development and building side projects, you probably don’t care about performance. But caring about it now will prepare you for when it truly becomes important.
And if you’re a seasoned veteran, it’s especially your responsibility to keep the web clean, so that others can learn from your example.
Maciej Cegłowski puts it well: “Keeping the Web simple keeps it awesome.”
The good news is, it’s probably easier to beat back bloat than you think.
Beating Back Site Bloat Doesn’t Have To Be A Pain In The Ass
Look, I’m not going to preach to you about the “best practices” you’ve heard a million times.
Instead, I want to talk about something that you can do in a few minutes that will shave seconds off of your load times, without having to spend half a day debugging PHP to figure out why your WordPress site is slow.
In full disclosure, as the CEO of Netlify, I’m obviously biased here. But my goal with this post isn’t to get you to use Netlify. It’s to convince you that it’s not that hard to move away from slow and expensive legacy dynamic sites and web apps; ones that have to be built each time a visitor loads them. Sites that have to be built somewhere, so if they’re built on a server in New York, they’ll load fast in Manhattan, but slower elsewhere (being in Tokyo, for example, might add several seconds of extra latency).
There are tools that will take nearly all of the work out of the process for you.
Generators like Hugo, Hexo and Jekyll (dozens more options here) are used by hobbyists and large commercial developers alike to easily generate sites that load multiple times faster than they would with more traditional approaches.
To give you an example of the difference, I grabbed a copy of HBR.org, the Harvard Business Review site, which runs on WordPress, and deployed the static version to Netlify using the speedtest tool we built.
With 441ms to fully download the HTML, HBR.org is** already **much, much faster than the average site. Just testing out TestMySite.IO we found tons of commercial sites build with old fashioned tooling that had TTFB and HTML download north of 3000ms. But still, even here the difference is huge:
These aren’t just vanity differences. They have very real implications.
Google found that a 500ms difference in load time impacted revenue by a full 20%. Hence why speed is a ranking factor in site performance.
At Amazon, every 100 ms increase in load times decreased sales with 1%. And even on much, much smaller sites, we’re seeing similar results when comparing bounce rates, engagement and conversions.
Walmart decided to attempt to increase the competitive nature of their retail site, during their research they discovered:
This kind of data reflects the struggle that development teams face trying to optimize these metrics. Sometimes spending years trying to achieve as shaving off seconds on a legacy stack is both hard and costly.
But as the new wave of JAMstack development grows, these are gains that will be accessible simply by choosing the right initial setup. And these modern sites that don’t have to build on the fly are way faster, carry much less bloat, much safer and more scalable.
And that’s a very good thing for us developers, businesses, users and the entire web.
Want to take our new speedtest tool for a spin?
We spent a lot of time looking for a comprehensive speed test that measured that focused on Initial global loadtimes and security settings. When we couldn’t find one, we decided to build it ourselves. Try it out here it’s totally free.