Keeping a YouTube iframe playing across every page with Turbo Frames

I wanted the music player on my /music/ page to keep playing when a visitor clicks around the rest of the site. No stop, no restart, no auto-mute — just seamless continuous playback while the DOM around it swaps. The obvious approach — the one every blog post about Turbo tells you to use — didn’t work. The one that actually worked took me through three false starts. If you’re building a Hugo (or Jekyll, or Rails) site and you want an audio or video iframe that survives site-wide navigation, this post is what I wish I’d found on day one. ...

July 10, 2026 · 9 min · Omar Crosby