Browse Source

Quick fix to remove lag..

Executing a function to make a get request while simultaneously triggering a scroll event within the executed scroll event is probably not the best idea.

This still needs work, there should probably be something else used to check for updates, such as an event where page has focus or something else that doesn't get called so many times, preferably something that reduces the timer instead.

This is just a quick fix to stop all the lag on threads when scrolling near the bottom.
pull/40/head
ScriptKi77y 10 years ago
committed by czaks
parent
commit
7d5899d3a7
  1. 2
      js/auto-reload.js

2
js/auto-reload.js

@ -202,7 +202,7 @@ $(document).ready(function(){
}
end_of_page = true;
}
}).trigger('scroll');
});
$('#update_thread').on('click', function() { poll(manualUpdate = true); return false; });

Loading…
Cancel
Save