https://infinite-scroll.com/events.html
https://codenostra.com/fr/faire-un-rappel-aprs-le-chargement-du-contenu-avec-la-bibliothqueinfinity-scrolljs.html
https://annasthms.github.io/photosets/
Infinite Scroll
If you are using infinite scroll, you must call the function again in the infinite scroll function's callback function.
If you are using Paul Irish’s infinite scroll code, the callback function is the function that is at the end of all the options.
$container.infinitescroll({ // infinite scroll options }, function(items) { initPhotosets(); // if you used a callback function for this before, you must use it again here; if you do not know what a callback is, see above subheading // your other code });
If you are using David DeSandro’s infinite scroll code, the “callback function” is the function within container.on( 'append.infiniteScroll', function( … ) { code });.
$container.on( 'append.infiniteScroll', function( event, response, path, items ) { initPhotosets(); // if you used a callback function for this before, you must use it again here; if you do not know what a callback is, see above subheading // your other code });