Upload javascript file along with infinite scroll

2

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.

    
asked by anonymous 23.04.2014 / 21:43

1 answer

2

By logic:

  • When you scroll the page - > runs funcao() ;
  • when running 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.

    
23.04.2014 / 22:04