How to detect if more data are fetch into DOM asynchronously?

Yanira

New Member
Specifically, I want to call this function when the facebook page is loaded with:\[code\]window.addEventListener('load', myFunc);\[/code\]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?
 
Back
Top