I think filing bugs on browsers is one of the most useful things a web developer can do. When faced with a cross-browser compatibility problem, a lot of us are conditioned to just search for some...
https://nolanlawson.com/2024/03/03/bugs-ive-filed-on-browsers/
A common mistake I see in web components is this: This setupLogic() can be just about anything – subscribing to a store, setting up event listeners, etc. The teardownLogic() is designed to undo...
https://nolanlawson.com/2024/01/13/web-component-gotcha-constructor-vs-connectedcallback/
Compared to previous years, my reading velocity has taken a bit of a nosedive. Blame videogames, maybe: I’ve put more hours into Civilization 6 than I care to admit, and I’m currently battlin...
Web components are kind of having a moment right now. And as part of that, shadow DOM is having a bit of a moment too. Or it would, except that much of the conversation seems to be about why you ...
https://nolanlawson.com/2023/12/30/shadow-dom-and-the-problem-of-encapsulation/
In my last post, we went on a guided tour of building a JavaScript framework from scratch. This wasn’t just an intellectual exercise, though – I actually had a reason for wanting to build my ...
https://nolanlawson.com/2023/12/17/rebuilding-emoji-picker-element-on-a-custom-framework/
In my day job, I work on a JavaScript framework (LWC). And although I’ve been working on it for almost three years, I still feel like a dilettante. When I read about what’s going on in the la...
https://nolanlawson.com/2023/12/02/lets-learn-how-modern-javascript-frameworks-work-by-building-one/
Here’s a deep-in-the-weeds thing about web components that I ran into recently. Let’s say you have a humble component: And let’s say that this component throws an error in its connectedCall...
https://nolanlawson.com/2023/08/25/catching-errors-thrown-from-connectedcallback/
Dave Rupert recently made a bit of a stir with his post “If Web Components are so great, why am I not using them?”. I’ve been working with web components for a few years now, so I thought I...
https://nolanlawson.com/2023/08/23/use-web-components-for-what-theyre-good-at/
A few months ago, I gave a talk on CSS performance at performance.now in Amsterdam. The recording is available online: (You can also read the slides.) This is one of my favorite talks I’ve ever...
https://nolanlawson.com/2023/01/17/my-talk-on-css-runtime-performance/
Five years ago, I started a journey to build a better Mastodon client – one focused on performance and simplicity. And I did! Pinafore is the main Mastodon client I’ve used myself since I fir...