瀏覽代碼

made first scroll synchronous

Gildas 7 年之前
父節點
當前提交
aa7d1c33fe
共有 1 個文件被更改,包括 1 次插入1 次删除
  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));
 
 })();