I need to reload a JS function as soon as I roll the page with infinite scroll
in AJAX.
When the page is rolled the JS file needs to accompany.
I need to reload a JS function as soon as I roll the page with infinite scroll
in AJAX.
When the page is rolled the JS file needs to accompany.
By logic:
funcao()
; funcao()
- > does what you want. Try to imagine that the trigger is similar to hover
or click
, but this time it would be scroll
. More specifically, when the scroll reaches the low end of the viewport, execute something (and this is where AJAX comes in).
What is the difficulty with this logic?
For technical purposes, your question is very vague.