Is there a way to disable the behavior where some modern browsers (Chrome and Safari) remember your scroll position on a page refresh?
For browsers that support history.scrollRestoration, the auto scroll behavior can be turned off:
if ('scrollRestoration' in history) { history.scrollRestoration = 'manual'; }
source: https://developers.google.com/web/updates/2015/09/history-api-scroll-restoration
1.4m articles
1.4m replys
5 comments
57.0k users