JavaScript

91 articles 路 all categories

4 articles from 2022 show all

October 2022

Over-engineering tweet embeds with web components for fun and privacy

A way to embed tweets in static sites with full pre-renders and live updates using just 9kB of client-side JavaScript, 2 HTTP requests, and full reader privacy 鉁岋笍

April 2022

Quick tip about JavaScript's optional chaining operator

People on twitter loved this trick I learned from a coworker's pull request the other day. You might like it too.

Promise.allSettled, a wonderful tool for resilient code

The pros and cons of different approaches to writing resilient code that handles partial failures

February 2022

Immutability isn't free

Or how we took an API endpoint from 16s to 3s.