Hi,
I followed all the steps to deploy infinite scroll explained here (https://blog.appery.io/2015/07/how-to...) and works as expected. However, sometimes, I get the error in console log "Uncaught ReferenceError: onScrollHandler is not defined", exactly in the line "jQuery(window).scroll(onScrollHandler);":
code
var infiniteList = {
limit: "3",
skip: "0",
noMoreItems: undefined
};
Apperyio.storage.dogsInfinite.set(infiniteList);
console.log(infiniteList);
Code: Select all
window.setTimeout(function() {
jQuery(window).scroll(onScrollHandler);
}, 200);
/code
Do you know why? I thought that the time 100ms wasn't enough and I changed to 200ms but the error was kept. The problem is I can't find a pattern to simulate and try to solve.
Could you help me, please?
Thanks.
suficiente
pensei