惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Cyberwarzone
Cyberwarzone
Recorded Future
Recorded Future
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
罗磊的独立博客
大猫的无限游戏
大猫的无限游戏
博客园 - Franky
月光博客
月光博客
阮一峰的网络日志
阮一峰的网络日志
SecWiki News
SecWiki News
V
V2EX
S
Secure Thoughts
GbyAI
GbyAI
F
Full Disclosure
云风的 BLOG
云风的 BLOG
Security Archives - TechRepublic
Security Archives - TechRepublic
Cloudbric
Cloudbric
美团技术团队
H
Hacker News: Front Page
Latest news
Latest news
Y
Y Combinator Blog
C
Cybersecurity and Infrastructure Security Agency CISA
B
Blog RSS Feed
雷峰网
雷峰网
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Apple Machine Learning Research
Apple Machine Learning Research
Engineering at Meta
Engineering at Meta
AI
AI
The Hacker News
The Hacker News
Recent Announcements
Recent Announcements
S
Security @ Cisco Blogs
Blog — PlanetScale
Blog — PlanetScale
The Last Watchdog
The Last Watchdog
T
The Blog of Author Tim Ferriss
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
博客园_首页
J
Java Code Geeks
Attack and Defense Labs
Attack and Defense Labs
V
Vulnerabilities – Threatpost
A
About on SuperTechFans
P
Palo Alto Networks Blog
P
Privacy International News Feed
V2EX - 技术
V2EX - 技术
C
Cisco Blogs
I
Intezer
T
Troy Hunt's Blog
NISL@THU
NISL@THU
WordPress大学
WordPress大学
N
News and Events Feed by Topic
腾讯CDC

CSS Wizardry

Front-End’s Missing Metric: The TBT Window Meet Your Users Where They Are with Obs.js Better Browser Caching with No-Vary-Search font-family Doesn’t Fall Back the Way You Think What Is CSS Containment and How Can I Use It? When All You Can Do Is All or Nothing, Do Nothing Obs.js: Context-Aware Web Performance for Everyone Low- and Mid-Tier Mobile for the Real World (2025) The Fastest Site in the Tour de France Making Sense of the Performance Extensibility API Why Do We Have a Cache-Control Request Header? HTML Is Not a Programming Language… Build for the Web, Build on the Web, Build with the Web Licensing Code on CSS Wizardry A Layered Approach to Speculation Rules Designing (and Evolving) a New Web Performance Score Core Web Vitals Colours The Ultimate Contract Templates for Tech Consultants: Protect Your Business and Get Paid Optimising for High Latency Environments Cache Grab: How Much Are You Leaving on the Table? blocking=render: Why would you do that?! Correctly Configure (Pre) Connections The Three Cs: 🤝 Concatenate, 🗜️ Compress, 🗳️ Cache What Is the Maximum max-age? How to Clear Cache and Cookies on a Customer’s Device The Ultimate Low-Quality Image Placeholder Technique Core Web Vitals for Search Engine Optimisation: What Do We Need to Know? The HTTP/1-liness of HTTP/2 In Defence of DOM­Content­Loaded Site-Speed Topography Remapped Why Not document.write()? Speeding Up Async Snippets Critical CSS? Not So Fast! Measure What You Impact, Not What You Influence Optimising Largest Contentful Paint Measuring Web Performance in Mobile Safari Site-Speed Topography Speed Up Google Fonts Real-World Effectiveness of Brotli Performance Budgets, Pragmatically Lazy Pre-Browsing with Prefetch Making Cloud.typography Fast(er) Time to First Byte: What It Is and How to Improve It Self-Host Your Static Assets Tips for Technical Interviews Cache-Control for Civilians Bandwidth or Latency: When to Optimise for Which ITCSS × Skillshare What If? CSS and Network Performance The Three Types of Performance Testing Getting to Know a Legacy Codebase Image Inconsistencies: How and When Browsers Download Images Identifying, Auditing, and Discussing Third Parties My Digital Music Setup Measuring the Hard-to-Measure Finding Dead CSS The Fallacies of Distributed Computing (Applied to Front-End Performance) Relative Requirements Airplanes and Ashtrays Performance and Resilience: Stress-Testing Third Parties Refactoring Tunnels Little Things I Like to Do with Git Writing Tidy Code Configuring Git and Vim Base64 Encoding & Performance, Part 2: Gathering Data Base64 Encoding & Performance, Part 1: What’s Up with Base64? Code Smells in CSS Revisited Typography for Developers Moving CSS Wizardry onto HTTPS and HTTP/2 Ack for CSS Developers A New Year, a New Focus Preparing Vim for Apple’s Touch Bar Choosing the Correct Average CSS Shorthand Syntax Considered an Anti-Pattern CSS Wizardry Newsletter Nesting Your BEM? Improving Perceived Performance with Multiple Background Images Continue Normalising Your CSS Pure CSS Content Filter Pragmatic, Practical, and Progressive Theming with Custom Properties Refactoring CSS: The Three I’s Speaker’s Checklist: Before and After Your Talk Improving Your CSS with Parker The Importance of !important: Forcing Immutability in CSS Mixins Better for Performance Managing Typography on Large Apps White October Events Workshop Partnership BEMIT: Taking the BEM Naming Convention a Step Further Travelling Like You Want to, When You Have To Contextual Styling: UI Components, Nesting, and Implementation Detail Subtleties with Self-Chained Classes Cyclomatic Complexity: Logic in CSS Immutable CSS Can CSS Be Too Modular? More Transparent UI Code with Namespaces When to use @extend; when to use a mixin The Specificity Graph CSS Wizardry Ltd.: Year 1 in review CSS Guidelines 2.0.0
Ten Years Old
Harry Roberts · 2017-11-19 · via CSS Wizardry

Written by on CSS Wizardry.

Ten years ago today, a seventeen-year old Harry decided to register the domain csswizardry.com. It was such a small and inconsequential decision at the time: I only bought the domain because NuBlue, a British hosting firm, was running a promotional offer in which a .com domain and a year’s hosting was about £39 (I actually had to use my mother’s credit card, because I wasn’t old enough to have one of my own). As I clicked that checkout button, little did I know that that simple purchase would be the defining part of the next decade of my life.

I chose the name CSS Wizardry because I knew I wanted to start a blog showcasing CSS tricks and techniques, and I’d also just finished reading Andy’s CSS Mastery which is a book that inspired me greatly. I actually loathe the name CSS Wizardry now, but it’s stuck too well for me to change it: I guess it’s here to stay. Incidentally, a lot of people think the name choice was making a play on the whole Harry/wizard thing—it wasn’t.

Fast forward a decade, and that whimsical purchase has probably been the most influential decision I ever made. What started off as an overly-confident teenager’s foray into front-end development ultimately led to my first job, a speaking career, and a full-time consultancy firm. I struggle to believe it, sometimes.

Over the last ten years I’ve been fortunate enough to work for a number of companies, both large and small, as a salaried front-end developer; I’ve spoken and workshopped at over 85 public events (and countless other private ones); I was able to start my own consultancy business through which I’ve worked with some truly amazing clients; I’ve been able to travel the world visiting over 35 different countries; I’ve met countless new people and made many wonderful new friends; I’ve experienced more amazing things than I feel I deserve. It’s been a phenomenal journey and I’m grateful for it every single day. Truly, I’m the luckiest person alive.

As impersonal as it may seem through a blog post, I want to offer sincere thanks every single person that’s joined me on this journey; no matter how much or how little, you’ve all played a part. From colleagues, to managers, to bosses, to clients, to conferences, and everyone in between: thank you.

But it’s been hard work. A lot of continued hard work. Writing over 200 articles, releasing open-source projects, developing and sharing new methodologies and techniques, is all just a small part of what’s made this all possible. Looking back on ten whole years begins to put a lot of it into perspective.

Bill Gates once famously said that…

[m]ost people overestimate what they can do in one year and underestimate what they can do in ten years.

The CSS Wizardry journey, it turns out, has been a long one. People often ask me how I got to where I am, and how they can emulate it themselves. They’re often disheartened to hear that it’s taken me a decade, and to them I typically repeat a phrase I learned some time ago:

The best time to plant a tree was 20 years ago. The second best time is now.

Having this website changed and shaped my career. If you don’t have a blog, I urge you, start working on one this weekend. Your own blog, with your own content, at your own domain. It might just change your life.

Facts and Figures

As CSS Wizardry is, first and foremost, a personal blog, it’s not as highly trafficked as, say, a site like CSS Tricks might be. That said, here are some interesting facts and figures1 from the last decade:

  • There have been 8,033,982 visitors from 238 countries who have been responsible for 14,237,772 pageviews.
  • The most highly trafficked single article has been Creating a pure CSS dropdown menu, taking 10.17% of the total pageviews.
  • The most highly trafficked single day was 25 April 2013 with 34,374 visitors. 74.25% of them were reading about Shame.css
  • The most highly trafficked year was 2013, which was when I was writing with a much higher frequency.
  • With 26.36% of total visitors, the US is the top location, followed by the UK (10.74%), and India (6.66%).
  • I had one lonely visitor from North Korea.
  • The ten fastest countries2 were:

    Country Mean Page Load (sec.)
    Belize 0.72
    Montenegro 1.43
    Norway 1.45
    Finland 1.49
    Algeria 1.55
    Malta 1.64
    Luxembourg 1.71
    Switzerland 1.76
    Slovenia 1.81
    Hungary 1.86
  • The ten slowest countries were:

    Country Mean Page Load (sec.)
    Lesotho 122.24
    Cuba 104.29
    Ecuador 59.96
    Rwanda 55.08
    Nigeria 44.05
    Nepal 37.81
    Ethiopia 29.71
    China 19.41
    Cyprus 15.08
    St. Lucia 14.71