1
0
Fork 0
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:
Luke Pulverenti 2015-08-02 13:02:23 -04:00
parent 998cbefa8a
commit c5c603f795
4 changed files with 10 additions and 17 deletions

View file

@ -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(),