-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
[vue] vue首页白屏是什么问题引起的?如何解决呢? #366
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
Comments
路由没配baseUrl |
在config文件夹中找到index.js打开把 |
1.打包后文件引用路径不对,导致找不到文件报错白屏 |
这个题不是说性能优化吗 |
我觉得也是 首页加载速度慢 出现短暂白屏 应该是问性能优化 |
加载 js 太慢了,打包需要优化下,另外用 cdn 加快请求; |
打包优化 路由懒加载 代码压缩 第三方插件按需加载 |
打包文件路径不对吧 |
好多回答都理解成出错的白屏了吧? 服务端接受 每个环节都可以找到机会「白屏」呢 |
是的,这白屏指的是性能优化的问题 |
出现白屏是因为SPA单页面,第一次加载的东西太多了 ,这种情况可以使用路由懒加载分担一下,一进页面先看到哪些,就加载哪些就好了。 |
Vue看了眼React,稍作叹息,对众人说道 ,“这个锅不该我一个人背,另外我是支持提前预编译的,你也可以直出html”。React听罢赶忙应和到,“就是就是”。 |
首页加载慢,1可以采用js分包、懒加载。2可以利用SSR同构渲染。 |
[vue] vue首页白屏是什么问题引起的?如何解决呢?
The text was updated successfully, but these errors were encountered: