Advertise here

scrollFrame – Retain Scroll Position Between Pages using Iframe

July 11, 2014     1977     HTML5 Scroll
scrollFrame – Retain Scroll Position Between Pages using Iframe

Retain your scroll position between pages using an iframe. Especially helpful for infinite scrolling views.

scrollFrame will hijack the user's click for elements that match the query selector you pass in and instead of reloading the page it will append a modal-like iframe that sits on top of your viewport and points to the element's href. It then uses HTML5 history APIs to make the back-button function as expected.

Related Plugins

Latest Plugins