Skip to content

Node.js based forum software built for the modern web

removing console log and removing a bit of code that would cause infinite loader to take 2.5s extra each round :P

Julian Lam917dfe74e6eb
diff --git a/public/src/forum/topic.js b/public/src/forum/topic.js
index 57a46b0603..99e47aaebe 100644
--- a/public/src/forum/topic.js
+++ b/public/src/forum/topic.js
@@ -957,7 +957,6 @@ define(['composer'], function(composer) {
});
setTimeout(function() {
- console.log(infiniteLoaderActive);
if (scrollTop + windowHeight == jQuery(document).height() && !infiniteLoaderActive) {
pagination.innerHTML = Topic.postCount + ' out of ' + Topic.postCount;
progressBar.width('100%');
diff --git a/src/socket.io/topics.js b/src/socket.io/topics.js
index 5e71ee0022..d79bb1b8a6 100644
--- a/src/socket.io/topics.js
+++ b/src/socket.io/topics.js
@@ -204,9 +204,7 @@ SocketTopics.loadMore = function(socket, data, callback) {
end = start + 9;
topics.getTopicPosts(data.tid, start, end, socket.uid, function(err, posts) {
- setTimeout(function() {
- callback(err, {posts: posts});
- }, 2500);
+ callback(err, {posts: posts});
});
};