This actually looks like a really good API. I like the scroll position and focus state part.
RE polyfills -- I've been using this for the last 10 years: github.com/substrate-sy...
Not a pollyfill, but it does all the things I need, and smooths the history API.
So excited by this. Related, but kind of general question: how stable is the API? I've been going through the GitHub issues for how I might implement a "rollback" after an intercept, and it looks like there have been a few of solutions: commit: 'after-transition', event.commit(), & precommitHandler.
This is so much cleaner. I've told students to avoid rolling their own solutions using the history API because it's so messy, but this makes it feel much more in reach
This is literally my favorite account on Bluesky and these @jakearchibald.com videos are great! Exciting to see the conclusion to the "big back button quiz" saga.