8.11
This commit is contained in:
1 parent
78a6cc46cd
commit
e86aebf49b
86 files changed
+1064
-391
No files matched your search
@@ -22,13 +22,17 @@ https://github.com/instantpage/instant.page
|
||||
|
||||
PC端
|
||||
---
|
||||
在用户单击链接之前,他们会将鼠标悬停在该链接上。当用户悬停 65 毫秒时,他们有二分之一的机会点击该链接,因此 instant.page此时开始预加载,平均为页面预加载留下超过 300 毫秒的时间。
|
||||
另一种选择是在用户开始按下鼠标时加载页面而不进行预加载。这使得未使用的请求为零,同时仍然将页面加载平均提高了 80 毫秒。
|
||||
您还可以在悬停时或链接可见时进行预加载,并在用户开始按下鼠标时触发点击,从而使您的页面成为世界上最快的页面。
|
||||
```markdown
|
||||
在用户单击链接之前,他们会将鼠标悬停在该链接上。当用户悬停 65 毫秒时,他们有二分之一的机会点击该链接,因此 instant.page此时开始预加载,平均为页面预加载留下超过 300 毫秒的时间。
|
||||
另一种选择是在用户开始按下鼠标时加载页面而不进行预加载。这使得未使用的请求为零,同时仍然将页面加载平均提高了 80 毫秒。
|
||||
您还可以在悬停时或链接可见时进行预加载,并在用户开始按下鼠标时触发点击,从而使您的页面成为世界上最快的页面。
|
||||
```
|
||||
移动端
|
||||
---
|
||||
|
||||
用户在释放之前开始触摸显示屏,平均留出90 毫秒的时间来预加载页面。
|
||||
```markdown
|
||||
用户在释放之前开始触摸显示屏,平均留出90 毫秒的时间来预加载页面。
|
||||
```
|
||||
|
||||
![][1]
|
||||
|
||||
@@ -38,7 +42,9 @@ PC端
|
||||
|
||||
代码如下
|
||||
|
||||
<script src="//instant.page/5.2.0" type="module" integrity="sha384-jnZyxPjiipYXnSU0ygqeac2q7CVYMbh84q0uHVRRxEtvFPiQYbXWUorga2aqZJ0z"></script>
|
||||
```js
|
||||
<script src="//instant.page/5.2.0" type="module" integrity="sha384-jnZyxPjiipYXnSU0ygqeac2q7CVYMbh84q0uHVRRxEtvFPiQYbXWUorga2aqZJ0z"></script>
|
||||
```
|
||||
|
||||
![][2]
|
||||
|
||||
@@ -47,5 +53,5 @@ PC端
|
||||
各位来访的朋友,有没有觉得速度比之前更快呢
|
||||
|
||||
|
||||
[1]: /pics/2024/03/4028544490.png
|
||||
[2]: /pics/2024/03/1392231476.png
|
||||
[1]: /pics/2024/03/4028544490.png
|
||||
[2]: /pics/2024/03/1392231476.png
|
||||
Reference in new issue
Block a user