top | item 4100652

(no title)

bobwebb | 13 years ago

When I scroll the page, it lags slightly. I'm using a reasonably fast computer on Linux and this kind of thing doesn't happen all that much. I can only assume it's because of all the elaborate javascript, CSS, etc.

discuss

order

cilliank|13 years ago

@bobwebb, thanks for this - can you advise what browser (preferably with version number) you're using? You're right, it's likely the large amount of Javascript but also at present the infinite scroll rapidly loads a lot of quite high quality PNG preview images which we've found has a direct affect on some browsers. We're working on both refactoring and image optimization to correct this.

Cheers!

jameswyse|13 years ago

I haven't looked at your code but I encountered a similar problem on a site I was building, the scrolling was fast in every browser except firefox. Turned out that firefox doesn't dispatch scroll events as quickly as the others, but I found a function which fixed the problem:

http://blog.keithclark.co.uk/faster-scrolling-parallax-websi...

Might be irrelevant but I thought I'd drop this in, in case it was useful.

loevborg|13 years ago

Fast enough on (what feels like) a hellishly old computer running Linux and Chrome 19.

cilliankieran|13 years ago

Thanks Loeveborg - good to know it works on that setup as we're currently testing on a limited range of platforms. Cheers.