[Screencast] Infinite Scrolling
Infinite scrolling is now a common feature and there are several cases where it is really useful. For instance there are some websites where we simply can’t imagine a good pagination system, like Twitter or even Facebook.
When using will_paginate, each subsequent “page” will take longer and longer to load because will_paginate uses OFFSET. For infinite scroll you really want to use keyset pagination instead, e.g. GitHub - glebm/order_query: Find next / previous Active Record(s) in one query.
OFFSET
Do you have a full example of using order_query for pagination in a Rails app?
I haven’t got around to making an example app yet, unfortunately.
Well, I’ll keep my eye out then.