You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 17, 2022. It is now read-only.
原计划将页面依赖的 JS 资源,通过 preload 的方式进行预加载
#229
但实时上,浏览器在下载完 HTML 后,HTML 中声明的 link 和 script 资源会被立即发起请求,且是并行的,而非按顺序边解析,边加载。
所以将 body 中的 script 内容前置到 head 中,使用 preload,并不会提前资源的加载时机。
通过 preload 可能带来较大收益的场景是:
The text was updated successfully, but these errors were encountered: