Number of auto loads / Only execute once per post
-
Hi Sebastian. First of all thank you for a great plugin.
I’ve been playing around w. it for my site, and everything seems to work fine; although when I scroll past the
post-divider
it seems that it loads new posts ahead of the next post. That is, if I’m reading post 1 and surpassing the post-divider, then scroll back up to eitherenter
orexit
(in terms of scrollSpy) it automatically loads post 2, 3, 4 and so on depending on how many times the user scrolls up and down.Instead I’m looking for a fix/tip on how to make sure that it is only executed once for post 1, so ONLY post 2 loads, and at the end of post 2 ONLY post 3 loads and so on. My current thought is to track the user’s scrolling direction (to only execute when scrolling down and surpassing a specific element), but I’ve not been successful in any fix. Therefore I’m writing you to hear if you have any ideas on how to implement such a solution within the existing code base.
Thanks in advance.
- The topic ‘Number of auto loads / Only execute once per post’ is closed to new replies.