Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

建议:加载速度还行但是逻辑还可以优化 #16

Open
zw9629 opened this issue Apr 30, 2022 · 0 comments
Open

建议:加载速度还行但是逻辑还可以优化 #16

zw9629 opened this issue Apr 30, 2022 · 0 comments

Comments

@zw9629
Copy link

zw9629 commented Apr 30, 2022

image
通过图中 蓝线和红线代表的 "页面加载"和"加载完成",
可以证明这个页面需要在下载完html\js\css后还需要请求网站图标和背景图片后才进行页面加载,在网站没有背景和图标时可以极快的加载,但是有了之后加载就变慢了.
优化思路是把所有图片做成懒加载形式 , 且背景图片优先加载 ,快速 完成 页面 呈现 .
已知这样完成的 有https://inftab.com/

image
该页面仅在完成基本的 html\js下载后就进行了页面加载,后续 的js和 图片 都是懒加载
表现速度确实也很优秀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant