jquery restore scroll position code example
Example: jquery keep scroll position
var scroll = $(window).scrollTop();
// yada
$("html").scrollTop(scroll);
var scroll = $(window).scrollTop();
// yada
$("html").scrollTop(scroll);