Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


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


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.


Thanks James - will certainly take a look. I'm not sure if this is related or if it's simply the number of assets being loading are struggling on different browsers.

Cheers.


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


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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: