NEW: Pagination on wishlist/tradables/blacklist/library pages!
I worked on this for months, abandoned it at one point because of technical issues and finally devoted a couple days to working on it seriously.
- If you're visiting a list that has more than 1000 items (on desktop; or 500 items on mobile devices, 200 on desktop with banners enabled, and 100 on mobile with banners enabled), the list will be split over multiple pages. The number of items was chosen arbitrarily based on my own experience of performance comparisons between on-the-fly sorting and AJAX-based sorting. (Basically, on mobile, on-the-fly sorting speed was absolutely terrible beyond a few hundred items...)
- Paginated lists can still be sorted on the fly, but instead of sorting them through JavaScript I'll sort them on the server. This makes performance actually much better on mobile, but I'm close to the server physically so I don't know about you guys. I'd like to point out that if you checked items on your lists and then changed the order, they will still remain checked internally even if they disappear from the page (e.g. same sorting algorithm, reversed order). Once you reset the sort order, you'll get your items checked again. I'm insisting on this because it was the main cause for concern that I had to fix this week. :P
- I'm considering completely dropping JavaScript sorting because arguably server performance is always better on mobile devices and often on par with JS sorting on desktop devices. However I'm not 100% sure, it needs a lot more testing.
So, don't forget to send your bug reports..!
The only drawback of paginated lists is that you can no longer filter through all items at once, obviously. I'll try to add some kind of realtime filter like the search engine in the top bar, or the wishlist filter at Steam. We'll see about it... Right now I just want to go to bed. :P