Turns out you don’t have to upgrade to macOS Mojave to enjoy the benefits of Safari 12. Apple just released it for two earlier versions: High Sierra and Sierra.
This browser update works hard to protect your privacy, and offers plenty of other improvements too.