mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
lazy load scripts
This commit is contained in:
parent
b9884940ef
commit
a3b2f32a2a
10 changed files with 19 additions and 15 deletions
|
@ -1,7 +1,7 @@
|
|||
(function ($, document) {
|
||||
|
||||
function reload(page) {
|
||||
|
||||
function loadRecommendedPrograms(page) {
|
||||
|
||||
Dashboard.showLoadingMsg();
|
||||
|
||||
ApiClient.getLiveTvRecommendedPrograms({
|
||||
|
@ -25,7 +25,13 @@
|
|||
});
|
||||
|
||||
$('.activeProgramItems', page).html(html).lazyChildren();
|
||||
Dashboard.hideLoadingMsg();
|
||||
});
|
||||
}
|
||||
|
||||
function reload(page) {
|
||||
|
||||
loadRecommendedPrograms(page);
|
||||
|
||||
ApiClient.getLiveTvRecommendedPrograms({
|
||||
|
||||
|
@ -98,7 +104,7 @@
|
|||
});
|
||||
}
|
||||
|
||||
$(document).on('pagebeforeshow', "#liveTvSuggestedPage", function () {
|
||||
$(document).on('pageshown', "#liveTvSuggestedPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue