About Sam Sam's head

Popular Posts

Node.js Streams & Object Mode

Streams for bytes are rarely useful, and objectMode can be made better.

Understanding Load Events on the Web

We use the load and DOMContentLoaded events in our scripts, but do you understand why?

What To Expect When You're Expecting To Drop IE11

50+ web features you can use when you say 👋 to IE11 support!

Async Generators for User Input

Use a native-like event loop on the web.

Disposable Web Components

Web Components are described as re-usable. What if instead, we can dispose of them and restart whenever we like?

Logging with App Engine and Stackdriver

Application logs inside App Engine used to be easy, now they're not.

Recent Posts

Sents File Watcher for Node

A pure-JS file watcher with no dependencies.

Async functions & microtasks

A brief interlude on async, Promise, and execution order.

Make Async Methods Sync in Node.js

You shouldn't block the main thread to make async methods sync... unless, hmmmm? 🤔💭

Inert in HTML

How to make your elements and subtrees inert—unclickable and unfocusable—in HTML.

Smart Switches

Home Automation through smart switches.

UX, meaning and singular focus

Consoles present modals when they want user input, such as from the keyboard. Can we apply this to the web?

Web Font Loading & The Status Quo

Is font-display right for you?

Observing rendered DOM nodes

Observe DOM appearance, size and and rendering position on a page.