Earlier quoted context omitted.
for now yes. If you say you need it for desktop I am willing to add this support, it should be easy. to see the scrolling effect now you can simply drag or flick the list even from desktop.
Small recommendation - make the demo more obvious. I skimmed through the article looking for it and couldn't find it until I hit Cmd + F
High-Performance Infinite List in JavaScript
11–20 of 24 posts
Re: High-Performance Infinite List in JavaScript
#12So this is only for touch-based devices? Trying scrolling with the mouse/trackpad, nothing happens :(
for now yes. If you say you need it for desktop I am willing to add this support, it should be easy. to see the scrolling effect now you can simply drag or flick the list even from desktop.
Re: High-Performance Infinite List in JavaScript
#13Rendering to the DOM only what the user can see unfortunately breaks the browser's "find" feature. I hope that this technique does not become more popular than it already is. That way the rest of the web, other than Facebook's news feed, can continue to be searchable.
I wonder how you plan to support the browsers 'find' feature on an infinite list.
Re: High-Performance Infinite List in JavaScript
#14Re: High-Performance Infinite List in JavaScript
#15Re: High-Performance Infinite List in JavaScript
#16Rendering to the DOM only what the user can see unfortunately breaks the browser's "find" feature. I hope that this technique does not become more popular than it already is. That way the rest of the web, other than Facebook's news feed, can continue to be searchable.
Re: High-Performance Infinite List in JavaScript
#17Rendering to the DOM only what the user can see unfortunately breaks the browser's "find" feature. I hope that this technique does not become more popular than it already is. That way the rest of the web, other than Facebook's news feed, can continue to be searchable.
I wonder how you plan to support the browsers 'find' feature on an infinite list.
Re: High-Performance Infinite List in JavaScript
#18Rendering to the DOM only what the user can see unfortunately breaks the browser's "find" feature. I hope that this technique does not become more popular than it already is. That way the rest of the web, other than Facebook's news feed, can continue to be searchable.
This kind of component in my mind is usually used in web applications, which then will also supply own search for you, which should be more robust than your browser find feature.
Re: High-Performance Infinite List in JavaScript
#19Rendering to the DOM only what the user can see unfortunately breaks the browser's "find" feature. I hope that this technique does not become more popular than it already is. That way the rest of the web, other than Facebook's news feed, can continue to be searchable.
This cannot be solved by the infinite list itself, because by definition it needs to throw out unneeded content (otherwise it would just grow in memory). A search field on top of the list could talk to the server and retrieve the filtered elements.
Re: High-Performance Infinite List in JavaScript
#20Earlier quoted context omitted.
This cannot be solved by the infinite list itself, because by definition it needs to throw out unneeded content (otherwise it would just grow in memory). A search field on top of the list could talk to the server and retrieve the filtered elements.
Does this thing actually throw out not-in-view items entirely, and then ask the server for them again when the user scrolls up? That would be surprising. The memory overhead of the out-of-view items, after they are removed from the DOM, is probably pretty small.