-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
第 119 题:vue 如何优化首页的加载速度?vue 首页白屏是什么问题引起的?如何解决呢? #234
Comments
首页白屏的原因: 解决办法:
|
优化首页加载速度:
首页白屏原因是首页需要加载比较大的js文件, 解决方法是 在路由返回前添加loading |
首先分析原因VUE首页加载过慢,其原因是因为它是一个单页应用,需要将所有需要的资源都下载到浏览器端并解析。 考虑解决办法
个人意见,如有错误,烦请指正,谢谢! |
为什么这类问题不仅是vue。因为是spa,而且所有的渲染都在脚本上,js执行需要时间。另外加载js也要时间,所以页面越大,加载时间越长,而且js执行的时间也长,dcl发生的时间点就更晚,所以会白屏 怎么办
|
我的理解 白屏和首页加载过慢原因spa项目,所有的html几乎都是通过js渲染出来的,一旦js过于庞大或网速不够的情况下,可能会出现短暂白屏的情况 修改方法
|
大佬们说的技术都很不错啊 |
学习了学习了 |
|
webpack提取公用的模块、分包打包 |
广告时间 |
我太难了(;д;) |
请教下,quicklink对白屏首屏速度有提高么?感觉只能提高首屏中链接内容的渲染速度 |
原因: 工作中因为首页加载过慢白屏问题,进行过几次性能优化。 解决方案(工作中用到的):
|
原因:
解决:
|
No description provided.
The text was updated successfully, but these errors were encountered: