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:07:36 -04:00
parent 91f96dbe68
commit b9884940ef
7 changed files with 14 additions and 8 deletions

View file

@ -526,11 +526,13 @@
function getItemsOverlay(ids, context) {
$('.detailsMenu').remove();
var html = '<div data-role="popup" class="detailsMenu" data-transition="slidedown" style="border:0;padding:0;" data-ids="' + ids.join(',') + '" data-context="' + (context || '') + '">';
html += '<div style="padding:1em 1em;background:rgba(20,20,20,1);margin:0;text-align:center;" class="detailsMenuHeader">';
html += '<button type="button" class="imageButton detailsMenuLeftButton" data-role="none"><i class="fa fa-arrow-left"></i></button>';
html += '<h3 style="font-weight:400;margin:.5em 0;"></h3>';
html += '<h3 style="font-weight:400;margin:.5em 0;line-height:0;"></h3>';
html += '<button type="button" class="imageButton detailsMenuRightButton" data-role="none"><i class="fa fa-arrow-right"></i></button>';
html += '</div>';

View file

@ -221,13 +221,13 @@
});
}
$(document).on('pageinit', "#moviesRecommendedPage", function () {
$(document).on('pageinitdepends', "#moviesRecommendedPage", function () {
var page = this;
$('.recommendations', page).createCardMenus();
}).on('pagebeforeshow', "#moviesRecommendedPage", function () {
}).on('pageshown', "#moviesRecommendedPage", function () {
var parentId = LibraryMenu.getTopParentId();

View file

@ -1375,10 +1375,10 @@ var Dashboard = {
// The native app can handle a little bit more than safari
if (Dashboard.isRunningInCordova()) {
quality -= 30;
quality -= 20;
if (isBackdrop) {
quality -= 10;
quality -= 20;
}
} else {

View file

@ -174,7 +174,7 @@
});
}
$(document).on('pagebeforeshow', "#tvRecommendedPage", function () {
$(document).on('pageshown', "#tvRecommendedPage", function () {
var page = this;