Use two different post_per_page limits with infinite scroll

  1. Add a parameter to the href URI for the next posts link per JavaScript. For example ?ppp=25.
  2. Add a filter to pre_get_posts, check if ppp is set (and a positive integer) and change the post_per_page parameter accordingly.

Just an idea, no code, but it should give you a direction. 🙂