1kB Club Efforts
Extreme webpage payload optimization for the 1kB Club has become an obsession over the past few years. This code renders this site’s homepage in 142 bytes when served by a web server I’m creating:
<head><meta name=viewport content="initial-scale=1"><center><p>Welcome to <a href="/u">my</a> personal <a href="/i">wiki</a> and <a href="/1">weblog</a>.<p><a href="/p">1kb</a>, <a href="/h">webring<style>*{background:#14191e;color:#d4d4d6;font-size:1.5rem}center{padding:1.5rem}
This is live at https://1kb.tham.es and pending 1kB Club acceptance. I’m still adding unrelated features to my web server before deploying it here, but the techniques I’ve used for my 142-byte homepage include:
- HTML Optimization
- HTML Minification
- Link Redirection
- Transport Optimization
- Brotli Compression
- Content Trickery
- Web Server Optimization
- HTTP Header Optimization
- Favicon Handling
Every one of these bullets has been a rabbit hole, and I plan to write about what I’ve learned in detail.