- πΊπΈUnited States loze Los Angeles
Yes, there is an event for
views_infinite_scroll.new_content
. However this is triggered when the content is loaded and BEFORE it is populated in the DOM. Therefore if your custom js relies on the new items being in the DOM you need to use setTimeout() and give it enough time to populate before executing your code.the patch in #6 still applies and adds the event
views_infinite_scroll.new_content.appended
wich triggers after the content is added to the DOM.In my use case I am adding slides to a custom carousel script, and I need to refresh the carousel when new slides are added to the DOM.
Reopening this issue for reconsideration.