Closed azl397985856 closed 4 years ago
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
监听资源加载的事件,当首屏资源全部加载完成就将loading去掉即可。
如果你是做内核开发,可以直接监听静态资源的声明周期,如果你是web 前端,可以监听 onload 事件。
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
如上,浏览器会在页面加载的过程中转圈,加载完成之后就停止了。 那么具体什么时候开始转,什么时候停止呢?这个功能是怎么实现的(内部原理是怎么样的)?
扩展: