7 ms·
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 i
by bobwebb 14y 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.
- cilliank 14y 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 14y agoI 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-websites-in-firefox/ 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.
- cilliankieran 14y agoThanks 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.
- loevborg 14y agoFast enough on (what feels like) a hellishly old computer running Linux and Chrome 19.
- cilliankieran 14y agoThanks Loeveborg - good to know it works on that setup as we're currently testing on a limited range of platforms. Cheers.