I use this snippet to manipulate the action when clicking the 'a' tag within all '.read-more' div's:
[].forEach.call(document.querySelectorAll(".read-more > a"),function(el){el.addEventListener("click",function(e){...}
It works perfectly, except when I use infinite scrolling. All '.read-more a' elements that is not loaded at page loading, but when infinite scrolling is loading them, does not get affected by my snippet.
How to make the snippet affect the elements that is loaded by infinite scroll and not just the visible ones at page load?