Closed gedw99 closed 1 year ago
@gedw99 stop being everywhere π
It looks like people used to use local storage to retain the position and use JavaScript to put it back: https://stackoverflow.com/questions/29203312/how-can-i-retain-the-scroll-position-of-a-scrollable-area-when-pressing-back-but
But that modern browsers have a built-in API: https://jaketrent.com/post/scroll-restoration-javascript/
I don't think there's anything for templ to do here though. π
Thanks @a-h
Will try out some of these approaches and PR back an example if itβs pertinent
Am using templ with htmx .
anyone noticed that sone systems when you go back load the old page instantly and at the place ( in terms of scrolling ) where you were ?