I developed a webpage which loads and positions itself at a certain vertical scroll position for the user (depending on various factors unique to their account). It is not suitable to use a url anchor/hash in this case
Instead I use jQuery to scroll to the desired position, in the $(document).ready
This all works fine, except the page also tends to contain hotlinked images
Once these images have loaded, it suddenly results in the page becoming longer (and the position I automatically scrolled to is no longer accurate).. In Chrome at least, it doesn't compensate and just leaves the user staring at the same vertical pixel scroll position.
So I now plan to improve this by doing a 2nd scrollTo in $(window).load(), after all images have been loaded.... but only if the user has not already scrolled from the original position I set in document.ready()
What would be the best way to detect this?