We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
降低请求量:
加快请求速度:
缓存:
渲染:
The text was updated successfully, but these errors were encountered:
最近公司项目中优化时使用到的优化
打包方面 -生成环境关闭 productionSourceMap、css sourceMap 拆包 压缩JS 、CSS、图片 开启Gzip压缩 增加 cache-loader
打包方面
-生成环境关闭 productionSourceMap、css sourceMap 拆包 压缩JS 、CSS、图片 开启Gzip压缩 增加 cache-loader
productionSourceMap
css sourceMap
JS
CSS
Gzip
cache-loader
其他 文件按需加载 使用缓存 图片、路由懒加载
其他
文件按需加载 使用缓存 图片、路由懒加载
Sorry, something went wrong.
前端乐观更新:一些交互简单逻辑轻量的功能,比如点赞,可以不等请求结果到达先更新页面,等响应结果到手后再决定是否回滚
No branches or pull requests
降低请求量:
加快请求速度:
缓存:
渲染:
The text was updated successfully, but these errors were encountered: