updated card caching for frames
This commit is contained in:
@@ -4213,11 +4213,12 @@
|
||||
|
||||
const imageSrc = resolveCardThumbnail(card);
|
||||
if (showImage && imageSrc) {
|
||||
const imageCached = tarotCardImages.isImageLoaded?.(imageSrc) === true;
|
||||
const image = document.createElement("img");
|
||||
image.className = "tarot-frame-card-image";
|
||||
image.src = imageSrc;
|
||||
image.alt = getDisplayCardName(card);
|
||||
image.loading = "lazy";
|
||||
image.loading = imageCached ? "eager" : "lazy";
|
||||
image.decoding = "async";
|
||||
image.draggable = false;
|
||||
button.appendChild(image);
|
||||
|
||||
Reference in New Issue
Block a user