← All topics

JavaScript

All writing →

13 posts filed under JavaScript, newest first.

6 min

View transitions on a multi-page site

There's one argument for building a client-side app I've never had a good answer to: a real page navigation looks worse. The answer turns out to be a browser feature rather than a rebuttal.

CSS JavaScript
6 min

Intl

I added a date library out of pure habit, for one line of formatting, then removed it. Then I read what's actually built in and found four things I've been doing badly for years.

JavaScript
6 min

AbortController

Everybody meets this as the way to cancel a fetch. The more interesting thing it does has nothing to do with the network at all.

JavaScript
6 min

Event delegation

I took the last jQuery out of a project this month, six years after writing about only using it for one selector. The one thing I carried across was a pattern I'd only ever known as a jQuery feature.

JavaScript
7 min

IntersectionObserver

For about eight years the standard way to find out whether something was on screen was to ask, repeatedly, on every scroll event, in a way that forced the browser to stop and recalculate layout each time.

JavaScript Performance
7 min

Focus management

A full page load does a small piece of housekeeping nobody has ever had to think about. Swap content with JavaScript and you have quietly taken it on, almost certainly without noticing.

Accessibility JavaScript
6 min

Hooks and the classes I kept

Two weeks old, and the reaction has been the usual mixture of delight and grief. Having used them on something real, the interesting part is the problem they were built for. It isn't the problem everyone's arguing about.

React JavaScript
5 min

Yarn, because npm

A new package manager, three projects moved across, and the distinct feeling that I have written this post before under a different noun.

Tooling JavaScript
6 min

var, let, and the one I still use

ES6 is arriving all at once through a transpiler, which means that adopting it is a series of individual choices rather than one and some of those features have earned it more than others.

JavaScript