2021-03-09T10:55:21.png
原理是通过js实现鼠标移动到链接上点击之前就使浏览器预先加载。后续点开会非常快。具体实现可以自行查看代码哦。

<script src="//instant.page/5.1.0" type="module" integrity="sha384-by67kQnR+pyfy8yWP4kPO12fHKRLHZPfEsiSXR8u2IKcTdxD805MGUXBzVPnkLHw"></script>

代码仓库:https://github.com/instantpage/instant.page

注意cdn是使用cloudflare

Last modification:March 9, 2021
如果觉得我的文章对你有用,请随意赞赏