1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-01-31 12:23:48 +01:00

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.
This commit is contained in:
ScriptKi77y 2014-09-30 01:58:23 -05:00
parent 0f7220fa40
commit e9352a2ea8

View File

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