As your example, I download and run it by my webserver, When I keep pressing F5 continuously then the app doesn't keep the correct position anymore.
Even worse, When I use your example but loading dependencies by RequireJS instead, your example works but whenever I press F5 It doesnt keep the correct position (still be on the top page).
So how to press F5 but the app still keeps the correct position?