Pro-tip for web developers thinking about implementing a feature: don't. In most cases, just let the browser handle whatever the fuck you intend to re-implement badly with more bugs and less accessible.

This post brought to you by GitHub adding an additional new and fun way they broke the back button navigation.

Neat bonus from not doing the thing: less code that will break.
@samueldr but more code means more promotions!