Infinite Scroll

Some SPAs leverage an ‘infinite scroll’ technique, whereby new content is dynamically loaded as the user scrolls down the page. In these cases, it is usually necessary to dynamically insert additional Zones into the loaded content.

This is achieved using the standard SPA approach:

  1. Insert the Zone into the DOM.
  2. Register the Zone in a post initialisation callback or similar, preferably using fusetag.registerZone(zoneDivId)

Note that for infinite scroll setups, it is usually optimal to run the auction for a Zone before it scrolls into view, maximising its viewability. Fuse handles this automatically, and the optimal viewport-offsets will be determined by Publift during the onboarding process.

Examples