Procházet zdrojové kódy

made first scroll synchronous

Gildas před 7 roky
rodič
revize
aa7d1c33fe
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      lib/single-file/lazy-loader-after.js

+ 1 - 1
lib/single-file/lazy-loader-after.js

@@ -24,7 +24,7 @@
 
 	Element.prototype.getBoundingClientRect = window._singleFile_getBoundingClientRect;
 	delete window._singleFile_getBoundingClientRect;
-	requestAnimationFrame(() => scrollBy(0, 1));
+	scrollBy(0, 1);
 	requestAnimationFrame(() => scrollBy(0, -1));
 
 })();