# MathJax rendering changes scrolling position

When I follow a link to an answer (e.g. my answer here), the page is scrolled to the correct position. But then MathJax renders all the formulas, thus shifting content around, at which point the scroll position is no longer correct.

Can you add some JavaScript to run after MathJax has formatted the LaTeX on the page, to correct the scroll position again?

• This kind of things that may depend on your browser. What browser are you using, what version, under what operating system? – Gilles 'SO- stop being evil' May 20 '12 at 17:19
• Results reproducible in: Firefox 13, Waterfox 12, Opera 11.64 and Chrome 19.0.1084.46 on Windows 8 Consumer Preview x64. – A T May 21 '12 at 3:34
• I can confirm that for FF10 on Ubuntu. – Raphael May 22 '12 at 17:24

MathJax v2.0 added the ability to position to the location in the hash reference of the URL after MathJax finished processing the math, but it has some unwanted consequences for some pages, and so was off by default. MathJax v2.1 (in beta at the moment, scheduled for release within the next two weeks) should resolve those problems and so has this feature on by default. So if you are using the MathJax CDN with the mathjax/latest URL, you should start seeing your desired behavior shortly.