mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update lazy loading
This commit is contained in:
parent
ae6726b46f
commit
bcb026427e
3 changed files with 38 additions and 15 deletions
|
@ -6,6 +6,8 @@
|
|||
|
||||
var maxPhysical = 80;
|
||||
|
||||
// is="lazyload-image"
|
||||
|
||||
html += '<template is="dom-bind">\
|
||||
<iron-list as="item" id="ironList" scroll-target="' + scrollTarget + '" max-physical-count="' + maxPhysical + '" style="width:96%;" grid>\
|
||||
<template>\
|
||||
|
@ -14,7 +16,7 @@
|
|||
<div class="cardScalable">\
|
||||
<div class="cardPadder"></div>\
|
||||
<a onclick$="{{item.onclick}}" data-action$="{{item.defaultAction}}" class$="{{item.anchorClass}}" href$="{{item.href}}">\
|
||||
<img class$="{{item.imageClass}}" is="lazyload-image" src$="{{item.imgUrl}}" />\
|
||||
<img class$="{{item.imageClass}}" src$="{{item.imgUrl}}" />\
|
||||
<div inner-h-t-m-l="{{item.overlayHtml}}"></div>\
|
||||
</a>\
|
||||
</div>\
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue