The request
“I have a working implementation of infinite scroll on the collection page, but when it loads more products, the sort order gets messed up. Products from later pages appear out of sequence.”
The scroll worked but the ordering didn't. Customers sorting by price would see the sequence break after the first batch.
The approach
We rebuilt the infinite scroll so it respects the customer's active sort and filter when loading additional products. The URL updates as they scroll, so sharing a link or hitting back returns them to the same spot.
What we shipped
Infinite scroll respects active sort and filters
URL updates as products load
Back button returns to the same scroll position
Works across all collections