3 ms·
Fits right in with jquery. Then in the next version they can announce it's 2000% faster.
by axod 16y ago
Fits right in with jquery. Then in the next version they can announce it's 2000% faster.
- tjarratt 16y agoFirst you make it work, then you make it perform well. What, you were expecting the first code they wrote to be perfect?
- axod 16y agoAttaching code to scroll events will never be a good idea. Infinite scroll will never be a good idea.
- roel_v 16y ago"Infinite scroll will never be a good idea." I very much disagree. It's an awesome way to capture the reader. I love it myself, not needed reloads, hunting for 'next' buttons, ... Yes you lose the relative position on the page indicator from the scroll bar, but it's irrelevant by the time you get to the bottom of the page anyway.
- Sharlin 16y agoYou also lose all indication of the total content length, which is IMHO a bad thing in many contexts.
- wladimir 16y agoIf the content is not truly infinite (#comments known?), just very large, you could solve the scrollbar issue by giving the page the right vertical size (or an estimation), but only populating the HTML if the user scrolls somewhere.
- axod 16y agoso the page looks broken or like its still loading? Yah great usability
- wladimir 16y agoYou'd use AJAX to load the elements, so it doesn't show as loading. And you make sure the user never sees the empty space, given normal scrolling speed, by loading the area around the visible screen. Certainly not worse than extending the page when the user reaches the bottom, as some sites do.