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

@ -1574,6 +1574,10 @@ span.itemCommunityRating:not(:empty) + .userDataIcons {
}
.detailsMenu h3 {
padding: .7em 30px;
}
.detailsMenuHeaderWithLogo h3 {
padding: 0 30px;
}

View file

@ -4,7 +4,7 @@
<title>Emby</title>
</head>
<body>
<div id="moviesRecommendedPage" data-role="page" class="page libraryPage backdropPage" data-backdroptype="movie">
<div id="moviesRecommendedPage" data-role="page" class="page libraryPage backdropPage" data-backdroptype="movie" data-require="scripts/moviesrecommended">
<div class="libraryViewNav scopedLibraryViewNav">
<a href="#" class="ui-btn-active">${TabSuggestions}</a>

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;

View file

@ -4,7 +4,7 @@
<title>Emby</title>
</head>
<body>
<div id="tvRecommendedPage" data-role="page" class="page libraryPage backdropPage" data-backdroptype="series">
<div id="tvRecommendedPage" data-role="page" class="page libraryPage backdropPage" data-backdroptype="series" data-require="scripts/tvrecommended">
<div class="libraryViewNav globalNav" style="display: none;">
<a href="index.html">${TabHome}</a>