Practical JavaScript and the occasional accidental module.
JavaScript's this keyword doesn't get much love these days, but there's one fun way to use it that might convince folks to reconsider their lint rules.
I've been contemplating ways to build more resilient web applications. One consistent issue that seems to crop up in my explorations is that we have no way to execute JavaScript at a given priority.
The JavaScript language is single-threaded, which means that blocking that single thread for any period of time will prevent importing things like input handling and rendering.
The DOM provides a mechanism for registering event handlers that supports two techniques for observing events: directly-bound per-element listeners, and “delegated” listeners that receive events orig…
I’ve struggled to find references to this online, but heard the name used multiple times this year when describing the approach outlined here.