This is a lower-level API. Lower-level APIs are not recommended for most projects, and may not be available on all plans. See our page on recommended deployment patterns for more information.
Event Assess API

items:lazyload:batch

Fires when a new batch of Items have been loaded.

You would want to be notified about this event firing, for example, to know whether a specific Item has loaded so that you can navigate to it.

Note This event requires the lazyload init option to be enabled.

Examples

itemsApp.on('items:lazyload:batch', function (indicesAppended) {
    console.log('This code executes when each batch of Items has completed loading.');
});

Callback arguments

  • indicesAppended array
    An array of integers containing the zero-based index of the Items that have been loaded in current batch.

Related articles

Was this article helpful?