Ver Fonte

made compatible with medium

Gildas há 7 anos atrás
pai
commit
89834f1572
1 ficheiros alterados com 2 adições e 0 exclusões
  1. 2 0
      lib/single-file/lazy-loader.js

+ 2 - 0
lib/single-file/lazy-loader.js

@@ -77,6 +77,8 @@ this.lazyLoader = this.lazyLoader || (() => {
 			if (dataSrc && dataSrc.startsWith(DATA_URI_PREFIX) && dataSrc != EMPTY_DATA_URI && element.src != dataSrc) {
 				element.src = element.dataset[propertyName || attributeName];
 				processElement(element);
+				element.style.opacity = 1;
+				element.style.visibility = "visible";
 			}
 			element.removeAttribute("data-" + attributeName);
 		});