Headless WordPress on the JAMstack

Systems for z-index

September 24, 2021

Say you have a z-index bug. Something is being covered up by something else. In my experience, a typical solution is to put position: relative on the thing so z-index works in the first place, and maybe rejigger the z-index value until the right thing is on top. The danger here is that this sets […]

Read more ⟶

The Self Provisioning Runtime

September 24, 2021

Big thoughts on where the industry is headed from Shawn Wang: Advancements in two fields — programming languages and cloud infrastructure — will converge in a single paradigm: where all resources required by a program will be automatically provisioned, and optimized, by the environment that runs it. I can’t articulate it like Shawn, but this all feels right. […]

Read more ⟶

Comparing Methods for Appending and Inserting With JavaScript

September 24, 2021

Let’s say we want to add something to a webpage after the initial load. JavaScript gives us a variety of tools. Perhaps you’ve used some of them, like append, appendChild, insertAdjacentHTML, or innerHTML. The difficult thing about appending and inserting things with JavaScript isn’t so much about the tools it offers, but which one to […]

Read more ⟶

Our Learning Partner: Frontend Masters

September 24, 2021

Frontend Masters has been our learning partner for a couple of years now. I love it. If you need structured learning to up your web development skills, Frontend Masters is the place. It works so well because we don’t offer that kind of structured learning ourselves — I’d rather recommend a first-rate learning joint. CSS-Tricks is more […]

Read more ⟶

What is Your Page Title on a Google Search Engine Results Page?

September 23, 2021

Whatever Google wants it to be. I always thought it was exactly what your <title> element was. Perhaps in lieu of that, what the first <h1> on the page is. But recently I noticed some pages on this site that were showing a title on SERPs that was a string that appeared nowhere at all […]

Read more ⟶

Working With GraphQL Caching

September 23, 2021

If you’ve recently started working with GraphQL, or reviewed its pros and cons, you’ve no doubt heard things like “GraphQL doesn’t support caching” or “GraphQL doesn’t care about caching.” And for most, that is a big deal. The official GraphQL documentation refers to caching techniques so, clearly, the folks behind it do care about caching […]

Read more ⟶

Learn How to Build True Edge Apps With Cloudflare Workers and Fauna

September 23, 2021

There is a lot of buzz around apps running on the edge instead of on a centralized server in web development. Running your app on the edge allows your code to be closer to your users, which makes it faster. However, there is a spectrum of edge apps. Many apps only have some parts, usually […]

Read more ⟶

Container Units Should Be Pretty Handy

September 22, 2021

Container queries are going to solve this long-standing issue in web design where we want to make design choices based on the size of an element (the container) rather than the size of the entire page. So, if a container is 600px wide, perhaps it has a row-like design, but any narrower than that it […]

Read more ⟶

Twitter&#8217;s div Soup and Uglyfied CSS, Explained

September 22, 2021

When I came up in web development (2005-2010 were formative years for me), one of the first lessons I learned was to have a clean foundation of HTML. “What Beautiful HTML Code Looks Like” is actually one of the most popular posts on this very site. The image in that post made its way to […]

Read more ⟶

How to Implement Logging in a Node.js Application With Pino-logger

September 22, 2021

Logging, on its own, is a key aspect of any application. Logging helps developers comprehend what it is that their code is doing. It also helps save developers hours of debugging work. This tutorial is about implementing logging in a Node.js application using Pino-logger.

Read more ⟶

Proposal for CSS @when

September 21, 2021

CSS is on a tear lately. Again, I’ve heard of a brand new thing I’ve never seen before, and again it’s via Miriam: CSS Conditionals.

Read more ⟶

Cascade Layers?

September 21, 2021

There is a new thing coming in CSS: @layer. As with all new things, it takes time to really wrap your head around it. And despite me tapping at my keyboard about it, full disclosure, I’m not sure my mind is fully there yet. Fortunately, smart people are on the case!

Read more ⟶

7 Practical Uses for the ::before and ::after Pseudo-Elements in CSS

September 21, 2021

CSS ::before and ::after pseudo-elements allow you to insert “content” before and after any non-replaced element (e.g. they work on a <div> but not an <input>). This effectively allows you to show something on a web page that might not be present in the HTML content. You shouldn’t use it for actual content because it’s […]

Read more ⟶

An Event Apart Fall Summit 2021! (Use Coupon AEACSST21)

September 21, 2021

The web’s premier conference is online this fall, October 11–13, 2021: An Event Apart Fall Summit. If you already know how good of a conference this is (i.e. that some of the web’s biggest ideas debut at AEA) then just go buy tickets and please enjoy yourself. You can buy literally any combination of the […]

Read more ⟶

Resources aren&#8217;t requested by CSS, but by the DOM

September 20, 2021

This is a good tweet from Harry: I like it because, as he says, it’s the correct way to think about it. It helps form a mental model of how websites work.

Read more ⟶

Embracing Asymmetrical Design

September 20, 2021

I’ll never forget one of Karen McGrane’s great lessons to the world: truncation is not a content strategy. The idea is that just clipping off text programmatically is a sledgehammer, and avoids the kind of real thinking and planning that makes for good experiences.

Read more ⟶

imba

September 20, 2021

It’s not every day you see a new processor for building websites that reinvents the syntax for HTML and CSS and JavaScript. That’s what imba is doing.

Read more ⟶

Exploring the CSS Paint API: Polygon Border

September 20, 2021

Nowadays, creating complex shapes is an easy task using clip-path, but adding a border to the shapes is always a pain. There is no robust CSS solution and we always need to produce specific “hacky” code for each particular case. In this article, I will show you how to solve this problem using the CSS […]

Read more ⟶

Designing Beautiful Shadows in CSS

September 17, 2021

My favorite kind of blog post is when someone takes a subject that I’ve spent all of five minutes considering and then says—no!—this is an enormous topic worthy of a dissertation. Look at all the things you can do with this tiny CSS property! I was reminded of this when I spotted this post by […]

Read more ⟶

Computer Science Unleashed, Chapter 1: Connections

September 17, 2021

Humans crave connections, and the advent of the digital revolution has empowered us to be more connected than ever before. The Internet has unleashed upon billions of people unprecedented economic and political freedom, as well as powerful means of control and domination. Yet, the vast majority of us are oblivious to its inner workings.

Read more ⟶