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-17 15:50:37 -04:00
parent 0a670a4635
commit c5802fc5ab
38 changed files with 224 additions and 162 deletions

View file

@ -40,12 +40,6 @@
updateFilterControls(page);
if (AppInfo.hasLowImageBandwidth) {
if (view == 'Poster') {
view = 'PosterCard';
}
}
if (view == "Poster") {
// Poster
html = LibraryBrowser.getPosterViewHtml({
@ -218,7 +212,7 @@
}
}
$(document).on('pageinit', "#photosPage", function () {
$(document).on('pageinitdepends', "#photosPage", function () {
var page = this;
@ -283,7 +277,7 @@
reloadItems(page);
});
}).on('pagebeforeshow', "#photosPage", function () {
}).on('pageshown', "#photosPage", function () {
var page = this;
@ -311,8 +305,6 @@
}
});
}).on('pageshow', "#photosPage", function () {
updateFilterControls(this);
});