Delayed scroll restoration in Firefox using our polyfill.

Maintaining scroll positions in all browsers

Existing solutions

It turns out that this is such a debated topic in the react-router community, that they even split out a separate repo for different scroll behaviours.

Writing our own polyfill

Interestingly, people have argued that this is a bug in the spec, and in fact Chrome has deliberately implemented this differently.

--

--

Materialistic minimalist. Optimistic realist. Creative copycat. Rationalises believing in paradoxes.

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Jan Paul Posma

Jan Paul Posma

Materialistic minimalist. Optimistic realist. Creative copycat. Rationalises believing in paradoxes.