Best of DOMAugust 2025

  1. 1
    Article
    Avatar of ackoAcko.net·42w

    HTML is Dead, Long Live HTML

    The DOM has become bloated with over 350 properties per node and 660 CSS properties, making it unsuitable for modern web applications. CSS's inside-out layout model creates complexity, while features like flexbox require speculative layout passes that can cause performance issues. The author argues for rethinking web UI from first principles, proposing simpler layout models that separate concerns and provide better primitives for building applications. Current proposals like HTML-in-Canvas are insufficient because they don't address the fundamental architectural problems of the web platform.

  2. 2
    Video
    Avatar of wdsWeb Dev Simplified·41w

    Stop Using window “resize” Event Listeners

    Window resize event listeners are inefficient because they fire on every window resize, even when the specific element you're monitoring hasn't changed size. ResizeObserver provides a more efficient alternative by only triggering when the observed element actually changes dimensions. This API allows you to observe multiple elements with a single observer and only executes callbacks when those specific elements resize, making it ideal for element-specific size tracking rather than global window changes.