Links
Making content-aware components using CSS :has(), grid, and quantity queries
So, there you have it! A resilient, self-contained, content-aware component that can adapt to any language you throw at it. Newer CSS features like
:has()
, grid, container queries,@supports
, and logical properties are great for building hyper-resilient components. They’re even more powerful when combined with the established techniques we know and rely on. I’m excited for what the future of CSS holds, and hopefully after reading this you are too!
HTML Form Validation is heavily underused
HTML Forms have powerful validation mechanisms, but they are heavily underused. In fact, not many people even know much about them. Is this because of some flaw in their design? Let’s explore.
The most effective ways to improve Core Web Vitals
Unless web performance is your day job, it's probably not obvious which optimizations will be the most impactful for your site. You likely won't have time for all of them, so it's important to ask yourself what are the most impactful optimizations you can choose to improve performance for your users?
HTML Whitespace is Broken
I was never a fan of HTML's whitespace behavior before as I've been burned by it a few times. But as I dug into it more deeply, I found myself discovering complex design issues that I wanted to explore… and partially to vent about how unnecessarily complicated it all is.
Scroll-Driven… Sections
If you're creating a scroll-driven animation and the goal is "when the page is scrolling through this general section, animate the children" it's probably going to involve passing scrolling data through custom properties.
Videos
How is this Website so fast!?
Breaking down the McMaster-Carr website and the techniques they use to make it so dang fast. From a high level it looks like a old website, but that's not the case. I believe that the engineers are doing everything possible to make this website as fast as they possibly can, and they are using all of the tricks in the book. So, let's dig into how I figure that out as well as explaining how a lot of these things work.
Sponsor
Sponsored by Cloud Four
Thanks to Cloud Four for sponsoring this week’s newsletter! They solve complex responsive web design and development challenges for ecommerce, healthcare, fashion, B2B, SaaS, and nonprofit organizations.
If you’d like to help with the costs of running Friday Front-End, you can back our Patreon for as little as a dollar a month.