Posts
-
Consider Animating Your Canvas in a Web Worker
With so much going on on the browser's main thread, keeping a canvas animation buttery smooth can sometimes be a challenge. Web workers can help ease that hassle by handling the painting process elsewhere.
Read It -
More Elegant Destructuring with JavaScript Generators
Exploring one of the few practical-ish use cases for iterables and generators I’ve come across so far — destructuring an arbitrary number of entities on demand.
Read It -
Use a MutationObserver to Handle DOM Nodes that Don’t Exist Yet
Exploring how the MutationObserver API stacks up against the more traditional approach of polling for nodes that’ll eventually be created.
Read It -
You’ve Got Options for Removing Event Listeners
Reviewing some of the most common approaches available to remove event listeners in JavaScript.
Read It -
Use the .matches() Method to Determine if a Selector Matches an Element
A Superior, Native Alternative to the Lame Approaches I’ve Used in the Past
Read It -
What I Like About Astro
What Stuck Out While Migrating My Blog from Next.js to Astro
Read It -
How to Lazy Load Disqus for Improved Site Performance
I’ve been a vocal opponent of using Disqus for a number of reasons, one of which being what it does to the performance of your
Read It -
Keep Using Disqus if You Don’t Care About SEO, Performance, and User Privacy
I remember when I first started to get a little more serious about blogging. It was with a statically generated Gatsby site, with posts stored
Read It -
When I Actually Needed useLayoutEffect() in React
If you’ve worked with React for any length of time, you’ve probably heard of the infamous useLayoutEffect() hook. You’ve also probably never used it. That’s
Read It -
Serving Notion Presigned Images with Cloudflare Workers
I recently made a pretty big change on my website. For the first time ever, my posts don’t live in Markdown files. Instead, they’re all
Read It -
I’ve Boarded the SSG Train Again
If you haven’t noticed, we’re in a bit of a server-rendered resurgence right now. It seems like the heyday of the Jamstack, and more specifically,
Read It -
Why Can’t You .forEach() Over Empty Array Items?
Harken back to a time when you needed to execute some code a specific number of times and had some reason to not use a
Read It -
Develop an SPA Against a Remote Page w/ Vite
There are serious benefits to building small applications in the context of a complex, remote page. Vite makes it pretty simple to pull it off.
Read It -
Evading Goodhart’s Law in My Personal Life
A few months ago, I stumbled across Goodhart’s Law: When a measure becomes a target, it ceases to be a good measure.An example: The owner of
Read It -
Reminding Myself that Maps Store Objects by Reference Too
No matter how many times I revisit it, I have pretty consistent track record of being tripped up by how JavaScript assigns values to variables.Primitives:
Read It