views:

57

answers:

2

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

+3  A: 

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
Thanks I'll look into that :)
Michael Robinson
Thanks, deleted some unused library addition, seems to have fixed it.
Michael Robinson
+1  A: 

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
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