mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Enabled lazy load of poster images
This should make initial load of the movies page a little more responsive for larger libraries. This can be used on any page loading images.
This commit is contained in:
parent
66f8b0f93d
commit
2365becc14
4 changed files with 88 additions and 3 deletions
|
@ -56,7 +56,8 @@
|
|||
context: 'movies',
|
||||
showTitle: true,
|
||||
centerText: true,
|
||||
selectionPanel: true
|
||||
selectionPanel: true,
|
||||
lazy: true
|
||||
});
|
||||
$('.itemsContainer', page).removeClass('timelineItemsContainer');
|
||||
}
|
||||
|
@ -383,4 +384,12 @@
|
|||
updateFilterControls(this);
|
||||
});
|
||||
|
||||
$(function () {
|
||||
$("body").on("create", function () {
|
||||
$(".lazy").unveil(200, function () {
|
||||
this.style.opacity = 1;
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
})(jQuery, document);
|
Loading…
Add table
Add a link
Reference in a new issue