Infinite Scrolling post-load event does not fire
-
I recently started playing around with the infinite scroll feature of the wordpress jetpack plugin. It seems to work ok, but I’m trying to integrate with Masonry, so I need to use the post-load event that’s supposed to fire when Jetpack loads more posts.
But I can’t seem to catch that event.
I have a very minimal set up (with a supported, default theme – twentyfourteen) and I added this small script to footer.php to try and catch the event:
<script type='text/javascript'> document.body.addEventListener("post-load", function() { alert('posts loaded'); }); </script>
But I never get my alert even though the new posts are loaded.
Any ideas?
Thanks in advance.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Infinite Scrolling post-load event does not fire’ is closed to new replies.