mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
improve guide loading performance
This commit is contained in:
parent
998cbefa8a
commit
c5c603f795
4 changed files with 10 additions and 17 deletions
|
@ -28,8 +28,7 @@
|
|||
|
||||
function visibleInViewport(elem, partial, hidden, direction, threshold) {
|
||||
|
||||
var $t = $(elem),
|
||||
t = elem,
|
||||
var t = elem,
|
||||
vpWidth = $w.width(),
|
||||
vpHeight = $w.height(),
|
||||
direction = (direction) ? direction : 'both',
|
||||
|
@ -54,6 +53,7 @@
|
|||
return clientSize && hVisible;
|
||||
} else {
|
||||
|
||||
var $t = $(elem);
|
||||
var viewTop = $w.scrollTop(),
|
||||
viewBottom = viewTop + vpHeight,
|
||||
viewLeft = $w.scrollLeft(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue