Avoiding scroll-restoration jerk from browser back+forward buttons