Specifically, I want to call this function when the Facebook page is loaded with:
window.addEventListener('load', myFunc);
However, it seems like the function gets called only once (after DOM is constructed). I also want that function to get called dynamically when I scroll down the bottom of the page and more data are fetched. What kind of event listener should I set? What are the alternative solutions?