Are you telling me a readonly property is wrecking my performance?
Summary
The article explains how the readonly property `scrollHeight` can cause performance issues by triggering synchronous layout updates in Chromium, and suggests using a large number instead of recalculating scrollHeight frequently.
View Cached Full Text
Cached at: 07/13/26, 07:55 AM
Similar Articles
Don't Roll Your Own …
The author expands the 'don't roll your own crypto' principle to web development, arguing against custom implementations of scrolling, link navigation, text selection, and other browser-native behaviors.
The <noscript> element as a trap
The article discusses the limitations of the <noscript> HTML element, which only provides fallback content when JavaScript is completely disabled, not when JavaScript fails due to other reasons. It recommends using DOM APIs to dynamically update content instead.
CSS-Native Parallax Effect
A CSS-native parallax effect using scroll-driven animation timelines, providing a performant and simple utility class with no JavaScript.
Page weight matters
A call for simpler, faster websites by reducing page weight and avoiding heavy JavaScript frameworks, tracking, and ads. The author argues for returning to static HTML and CSS to respect users' time and resources.
Optimize for change not application performance
The article argues that software teams often over-optimise for micro-performance benchmarks at the expense of developer experience and engineering throughput, which are the true bottlenecks for long-term delivery speed and maintainability.