{"id":273332,"date":"2018-07-10T06:43:06","date_gmt":"2018-07-10T13:43:06","guid":{"rendered":"http:\/\/css-tricks.com\/?p=273332"},"modified":"2018-07-10T06:43:06","modified_gmt":"2018-07-10T13:43:06","slug":"delivering-wordpress-in-7kb","status":"publish","type":"post","link":"https:\/\/css-tricks.com\/delivering-wordpress-in-7kb\/","title":{"rendered":"Delivering WordPress in 7KB"},"content":{"rendered":"

Over the past six months, I’ve become increasingly interested in the topic of web sustainability. The carbon footprint of the Internet was not something I used to give much thought to, which is surprising considering my interest in environmental issues and the fact that my profession is web-based.<\/p>\n

<\/p>\n

The web in a warming world<\/h3>\n

As a brief recap, I attended MozFest<\/a> in London last year. In between sessions, I was scanning a noticeboard to see what was coming up, and I spotted a session entitled, “Building a Planet-Friendly Web.” I felt a little dumbstruck. What on Earth was this going to be about?<\/p>\n

I attended the session and the scales fell from my eyes. In what now seems obvious — but at the time was a revelation — I learned of the colossal energy demand of the Internet. This demand makes it the largest coal-fired machine on Earth, meaning that its CO\u2082 emissions are probably at least equivalent to global air travel<\/a>. More and more people are coming online, but this, coupled with the rise of ever more obese websites<\/a>, means that the Internet’s energy demands are growing exponentially. Every additional byte transferred means more energy, which in most countries means more CO\u2082.<\/p>\n

It is widely accepted that we should avoid printing emails to save trees, but this leads to a false assumption that the web is a green medium. I’m afraid to say, it is not.<\/p>\n

Is there another way?<\/h3>\n

The good news is, it needn’t be this way. Since 2009, Greenpeace has been auditing Internet companies on their energy usage, and lobbying them to improve by way of their Clicking Clean<\/a> campaign. The Green Web Foundation<\/a> has an ever-growing database of hosting companies who use renewable energy, or who are at least committed to being carbon neutral. And new tools<\/a> are emerging<\/a> to help those working on the web measure the environmental impact of our products.<\/p>\n

There are also some great resources out there such as Tim Frick’s Designing for Sustainability<\/em><\/a>, three year’s worth of talks from the SustainableUX<\/a> conference, and peripheral material<\/a> that, while not explicitly focused on sustainability, can help us build lower carbon websites.<\/p>\n

Enter Susty WP<\/h3>\n

I decided to challenge myself to see how efficiently I could package a WordPress website. While I was at it, I thought, \u201cWhy not make the website about sustainability and WordPress?” I know, WordPress\/sustainability inception. Cool, huh?<\/p>\n

And so, sustywp.com<\/a> is born. With its accompanying theme, Susty<\/a>. I’m rather chuffed to say I managed to get the load of the homepage down to 7KB of data transfer. I did actually get it down to 6KB, but the meta stuff added by Yoast bumped it up almost a whole KB! 😛 However, given I’m trying to spread a message, I deemed this to be an acceptable trade-off.<\/p>\n

\"\"<\/figure>\n

Before I get into the nuts and bolts, I just want to share a few headline facts:<\/p>\n