In regards to what you’ve mentioned about hitting back on Twitter and losing your scroll position - I think this is a difficult technical problem so solve in an elegant and reproducible way.
We’ve attempted to address this back location issue at my work for an “infinite scroll” feature and can only get it right about half the time and believe that’s handled mostly by the browser.
We’ve specifically looked at how YouTube handles this - and it’s about the same success rate for them.
Oh well even HN will always mess up your scroll position when hitting back so it goes