Hi guys!
I am building an infinite scroll of my items in bubble.io,
So far I have been using the "per_page" count to load new items and create that "infinite scroll" behavior.
for example my initial api call will use a per_page value of 15, and once the last item is visible, I make another call with a per_page of 30, which load 15 new items to my list.
While this is working perfectly, I am wondering if there is any performance issue using this method, instead of using the page approach (1,2,3, etc) with a fixed per_page count? Would my 2nd api call getting 30 items with per_page take longer to call, rather than loading the page 2 of the first api call?
My per_page approach is easier as I don't need any extra steps to join the previous 15 items of page 1 to the next 15 items of page 2, etc.
Wondering if anyone has deep knowledge about this type of optimization,
Cheers!
Help about infinite scroll pagination: Page VS Per Page
4 replies