CSS Performance Optimization: What Actually Matters
Not all CSS optimizations are equal. Learn which performance fixes actually impact real websites and which are just noise.
Thoughts on software development, technology, and things I learn along the way.
Not all CSS optimizations are equal. Learn which performance fixes actually impact real websites and which are just noise.
After decades of asking for it, CSS finally has the :has() selector. Learn how to style parents based on their children - the most requested CSS feature of all time.
Stop designing for viewport widths. Learn how container queries let you build components that respond to their actual container size, not the screen.
Most developers still use margin-left and padding-right out of habit. CSS logical properties are the modern replacement that makes your layouts direction-aware and future-proof.
Sass, Less, and Stylus solved real problems. But CSS itself has caught up in a lot of areas. Here's when preprocessors still make sense, and when they don't.
BEM looks ugly at first. Then you work on a large codebase without it, and suddenly those double underscores start looking beautiful.