I have ng-repeat which loads thousands of records with some complexity that can have heights between 100px and 1200px. Needless to say, performance is becoming quite a hit.
The infinite scroll module will work very well, in most cases, until you hit the edge where you scroll down to the bottom and most of the elements are loaded into the DOM, which brings me back to the square.
Angular-vs-repeat would be ideal for my case, but I did not understand how to calculate each next element height, as they are "Not fixed.
Which brings me back to endless scrolling. I assume that if the top elements (above the viewport) are replaced by an empty DIV with a calculated height equal to their total sum of height, performance will not be a problem. While scrolling will bring them back to dom and subtract the empty height of the DIV.
Has anyone done this before? Any suggestions? The code snippets would be great.
source share