Store the vertical scroll position when switching between documents. It would be nice to not have to use the idle callback to do this as it results in a jump on load