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
1f0760df09
commit
89e0515a15
31 changed files with 366 additions and 328 deletions
|
@ -10,6 +10,14 @@
|
|||
|
||||
Dashboard.showLoadingMsg();
|
||||
|
||||
if (AppInfo.enableAppStorePolicy) {
|
||||
$('.optionAdultContainer', page).hide();
|
||||
} else {
|
||||
$('.optionAdultContainer', page).show();
|
||||
}
|
||||
|
||||
query.IsAppStoreSafe = true;
|
||||
|
||||
var promise1 = ApiClient.getAvailablePlugins(query);
|
||||
|
||||
var promise2 = ApiClient.getInstalledPlugins();
|
||||
|
@ -128,7 +136,7 @@
|
|||
if (!plugin.isExternal) {
|
||||
html += "<div class='cardText packageReviewText'>";
|
||||
html += plugin.price > 0 ? "$" + plugin.price.toFixed(2) : Globalize.translate('LabelFree');
|
||||
html += RatingHelpers.getStoreRatingHtml(plugin.avgRating, plugin.id, plugin.name);
|
||||
html += RatingHelpers.getStoreRatingHtml(plugin.avgRating, plugin.id, plugin.name, true);
|
||||
|
||||
html += "<span class='storeReviewCount'>";
|
||||
html += " " + Globalize.translate('LabelNumberReviews').replace("{0}", plugin.totalRatings);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue