0

This problem has been bugging me for awhile. For some reason, after the page is finished or near-finished loading, the page jumps down, about half-way.

What I want to happen, and what I expect, is that pages remain at the top post-load.

Is there something I've done that could cause this?

For me it happens in Firefox 3.*

Example 1

Example 2 - Empty Olay bottles

Michael Robinson
  • 29,278
  • 12
  • 104
  • 130
  • 1
    Example 2 will not load for me. Example 1 displays at the top as expected. [Edit] Sorry, it did happen, but it was after the page finished "loading" in Firefox so I'm definitely thinking something Javascript coming into play. – Joseph Aug 30 '10 at 08:01
  • 1
    Example 2 is broken. Edit: It takes some time after the page has loaded indeed. – Kevin Aug 30 '10 at 08:02
  • @Airjoe fixed link. I thought so too, not sure what Script is causing it thought. @Kevin fixed. Yes the site is slow. – Michael Robinson Aug 30 '10 at 08:22

3 Answers3

3

Some javascript code is causing this: when I turn off javascript the page stays at the top. Since there are like a gazillion lines of javascript code, I'm gonna leave the search of the code causing this to you. I would suggest to look for 'scrollTop' or something.

Peter Kruithof
  • 10,584
  • 6
  • 29
  • 42
2

On example 2, Ive had downloaded your site and the error appears to be in your common.js file, I think its the height function. (I removed it and it worked fine) maybe have a look into that?

Line 50-64

AJFMEDIA
  • 2,093
  • 6
  • 29
  • 52
  • Thank you very much for this, it turns out that that whole class was redundant anyway, Prototype offers a way to get the viewport dimensions. – Michael Robinson Aug 31 '10 at 03:30
0

This fault of page jumping down half a page might be due to Greasemonkey. By a process of elimination, found out which add-on was causing this jump. So disabled Greasemonkey to stop page jumping half way down, or use Greasemonkey and live with it. Both Greasemonkey and Firefox latest versions. On my Firefox, autofocus did not fix page scroll part way down. Even after restart.