It’s the start of a new year, and while lots of folks are promising to be more active, I’m going to show you how to make Promise s to be more lazy…JavaScript Promise s, that is. It’ll make more sense in a moment. First, let’s look at a basic Promise ... more
Today, I’ll show you how to detect whether an HTTP request was submitted via HTML form or with JavaScript to the server. The examples in this post are based on Nuxt.js and include references to a few global functions ( defineEventHandler , getRequestHeaders ... more
There’s been a lot of hype lately around the CSS :has() pseudo-class. And rightly so! It’s basically the “parent selector” we’ve been asking for for years. Today I want to focus on ways we can use :has() to make HTML forms even better. (There’s a Codepen ... more
I make a lot of silly projects, and one things I’ve wanted for a long time is a way to automate the deployment process using Git. So in this blog post, we are going to be tackling just that. First things first, let’s settle on what the target is. What ... more
I was recently introduced to an obscure performance bug with Apache’s GZip module, and a clever solution using EdgeWorkers. So I made a video, and a small blog post to cover it: One thing I love about my job is when I get to work with people that are ... more
한국어 버전 (Korean version) I’ve been trying to come up with a good explanation of what exactly “edge compute” is and for reasons I don’t need to justify to you, I’ve landed on the analogy: it’s like selling knitted hats for dogs. Why knitted dog hats? Because ... more
I’ve talked at length about the benefits and virtues of progressive enhancement. I won’t spend too much time explaining it today, but it boils down to this: provide at least a working experience to the most users possible, and jazz things up for users ... more
I came across an interesting use case for edge compute the other day: cookie management at the edge. It probably won’t be super relevant to a ton of people, but it’s an interesting use case I wanted to share, nonetheless. Brief Background About Cookies ... more
The more I learn about edge computing, the more I look for compelling use cases that developers can relate to. Today, I have one: edge redirects. Background Imagine you manage a website with a lot of content. I’m talking, like hundreds of thousands of ... more
Hey friends, I have a little life update I wanted to share with you. Last month, I started a new role as a Senior Developer Advocate at Akamai. I’m super excited about this because it aligns well with my interests, and I wanted to take this opportunity ... more
Every person I’ve worked with has agreed that making the web more accessible is a good thing. We don’t want to disservice any of our users. However, accessibility is nuanced, the work is not always straight forward, and responsibility can be unclear. ... more
I recently gave a talk for the Conf42: JavaScript 2021 conference on using JavaScript to progressively enhance HTML forms. The goal was to show people how to improve user experience without negatively impacting native functionality. Transcript 0:01 Today ... more
I like TypeScript, but I prefer the JSDoc syntax for writing it. That should be obvious if you’ve read any of my JavaScript articles, especially Get Started With TypeScript the Easy Way. So far, I haven’t run into any scenarios where I can’t use JSDoc ... more