Let's let the unread features determine how to scroll
I profiled this and on a 700 post thread, 30% time was spent trying to figure out if we needed to scroll to the top of the thread or not. I don't feel that's acceptable.
This commit is contained in:
parent
6bd1d44b68
commit
44f2b5e434
@ -12120,8 +12120,7 @@
|
|||||||
Main.callbackNodes(Thread, [thread]);
|
Main.callbackNodes(Thread, [thread]);
|
||||||
Main.callbackNodes(Post, posts);
|
Main.callbackNodes(Post, posts);
|
||||||
Navigate.ready();
|
Navigate.ready();
|
||||||
Navigate.buildThread();
|
return Navigate.buildThread();
|
||||||
return Header.scrollToIfNeeded($('.board'));
|
|
||||||
},
|
},
|
||||||
buildThread: function() {
|
buildThread: function() {
|
||||||
var board;
|
var board;
|
||||||
|
|||||||
@ -12109,8 +12109,7 @@
|
|||||||
Main.callbackNodes(Thread, [thread]);
|
Main.callbackNodes(Thread, [thread]);
|
||||||
Main.callbackNodes(Post, posts);
|
Main.callbackNodes(Post, posts);
|
||||||
Navigate.ready();
|
Navigate.ready();
|
||||||
Navigate.buildThread();
|
return Navigate.buildThread();
|
||||||
return Header.scrollToIfNeeded($('.board'));
|
|
||||||
},
|
},
|
||||||
buildThread: function() {
|
buildThread: function() {
|
||||||
var board;
|
var board;
|
||||||
|
|||||||
@ -274,7 +274,6 @@ Navigate =
|
|||||||
Navigate.ready()
|
Navigate.ready()
|
||||||
|
|
||||||
Navigate.buildThread()
|
Navigate.buildThread()
|
||||||
Header.scrollToIfNeeded $ '.board'
|
|
||||||
|
|
||||||
buildThread: ->
|
buildThread: ->
|
||||||
board = $ '.board'
|
board = $ '.board'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user