mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
add fetch timeout
This commit is contained in:
parent
7c3fa06651
commit
ba5afc0ae2
14 changed files with 98 additions and 41 deletions
|
@ -3260,6 +3260,11 @@
|
|||
}
|
||||
|
||||
var img = elem.querySelector('img');
|
||||
img.onload = function () {
|
||||
if (img.src.indexOf('empty.png') == -1) {
|
||||
img.classList.add('loaded');
|
||||
}
|
||||
};
|
||||
ImageLoader.lazyImage(img, url);
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue