mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-02-01 18:25:05 -05:00
spotlight: Add prefetch.
This commit is contained in:
@@ -139,6 +139,12 @@ r.spotlight._advance = function(dir) {
|
||||
$next.show()
|
||||
|
||||
this.help($next)
|
||||
|
||||
// prefetch forward and backward if advanced beyond default state
|
||||
if (this.lineup.pos != 0) {
|
||||
this._materializePos(this._advancePos(1))
|
||||
this._materializePos(this._advancePos(-1))
|
||||
}
|
||||
}, this))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user