Assess API Events
items:lazyload:complete
Fires when all lazy load Items have been loaded successfully.
You would want to be notified about this event firing, because you may want to perform an external action after all batches have loaded, such as starting a third-party service.
Note This event requires the lazyload
init option to be enabled.
Examples
itemsApp.on('items:lazyload:complete', function () {
console.log('This code executes when all batches of Items have completed loading.');
});
Related articles
- The
lazyload
init option which enables lazy loading of Items. - The
items:lazyload:batch
event, the event that occurs after each batch has finished loading. - The
items:lazyload:error
event, the event that occurs if any of the batches failed to load.