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
0a670a4635
commit
c5802fc5ab
38 changed files with 224 additions and 162 deletions
|
@ -39,15 +39,6 @@
|
|||
|
||||
updateFilterControls(page);
|
||||
|
||||
if (AppInfo.hasLowImageBandwidth) {
|
||||
if (view == 'Thumb') {
|
||||
view = 'ThumbCard';
|
||||
}
|
||||
else if (view == 'Poster') {
|
||||
view = 'PosterCard';
|
||||
}
|
||||
}
|
||||
|
||||
if (view == "Thumb") {
|
||||
html = LibraryBrowser.getPosterViewHtml({
|
||||
items: result.Items,
|
||||
|
@ -118,7 +109,7 @@
|
|||
$('#selectView', page).val(view).selectmenu('refresh');
|
||||
}
|
||||
|
||||
$(document).on('pageinit', "#movieGenresPage", function () {
|
||||
$(document).on('pageinitdepends', "#movieGenresPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
|
@ -163,7 +154,7 @@
|
|||
LibraryBrowser.saveViewSetting(getSavedQueryKey(), view);
|
||||
});
|
||||
|
||||
}).on('pagebeforeshow', "#movieGenresPage", function () {
|
||||
}).on('pageshown', "#movieGenresPage", function () {
|
||||
|
||||
var page = this;
|
||||
query.ParentId = LibraryMenu.getTopParentId();
|
||||
|
@ -189,8 +180,6 @@
|
|||
}
|
||||
});
|
||||
|
||||
}).on('pageshow', "#movieGenresPage", function () {
|
||||
|
||||
updateFilterControls(this);
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue