1
0
Fork 0
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:
Luke Pulverenti 2015-05-15 14:28:34 -04:00
parent b9884940ef
commit a3b2f32a2a
10 changed files with 19 additions and 15 deletions

View file

@ -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;