Justin Marsh
justinmarsh.dev
Blog
Resume
Navigate
HomeBlog
Resume

Hotwire

Thoughts on software engineering, Ruby on Rails, and building better web applications.

Hotwire Turbo Scroll Preservation: Why Your Back Button Forgets Where You Were

January 23, 2026 (1 month ago)

Hotwire Turbo Scroll Preservation: Why Your Back Button Forgets Where You Were

Justin Marsh
Justin Marsh · 5 min · Engineering

Your Rails app scroll position breaks on back button because of one CSS rule. Learn why Turbo only tracks body scroll, and how to fix your layout so users land exactly where they left off.

Building Buttery-Smooth Reorderable Lists with Hotwire and Stimulus

January 22, 2025 (1 years ago)

Building Buttery-Smooth Reorderable Lists with Hotwire and Stimulus

Justin Marsh
Justin Marsh · 16 min · Engineering

Build drag-and-drop reorderable lists that feel native using only Hotwire, Stimulus, and vanilla JavaScript. No React, no external libraries—just 60fps interactions with optimistic UI.

mailMailgithubGitHubxXinstagramInstagram