owncloud/core — pull request #5590 by PVince81 (2013-10-28 21:59:47+00:00)
Title: [WIP] [Experimental] Files app infinite scroll

:construction: WIP

This is an experiment with infinite scrolling and big file lists.

This changes the following:
1) Files app file list is pure-ajax (no more pre-rendering)
2) Ajax call returns a JSON list of files
3) The UI caches the JSON list and only appends the first 20 files
4) When the user scrolls down, the UI will append the next 20 files

I managed to make this work with 12000 entries at first. It seems Chrome didn't have a problem caching them.

The bottleneck in the browser (before these commits) was when appending ALL 12000 elements into the DOM.

I've also discovered very unefficient jQuery usage like $('tr') which is called many many times and would lock up the browser every time when trying to select the 12000 elements.

Since these changes are too big to be included into OC6, I'll use some of these insights to tweak the performance of the file list OC6.

I'll leave this PR here if someone wants to try it out. (it is NOT ready as it breaks the trash + sharing apps at the moment)

@karlitschek @schiesbn @DeepDiver1975 @jancborchardt