News for hackers. Stuff that matters.
Re:High-Performance Infinite List in JavaScript by anonymoushn on Monday June 15, 2015 @07:46AM (#9718729)
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.
Re:High-Performance Infinite List in JavaScript by roeierez on Monday June 15, 2015 @08:06AM (#9718794)
You are right, the pages data that is fetched from the server is kept in memory for future rendering, which usually does not cause memory problems. It is up to the user how to implement search, either by searching in-memory, or change the query and reload the list.