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

[vue] 1. vue 中的性能优化 #392

Open
qiilee opened this issue Oct 8, 2019 · 0 comments
Open

[vue] 1. vue 中的性能优化 #392

qiilee opened this issue Oct 8, 2019 · 0 comments
Labels

Comments

@qiilee
Copy link
Member

qiilee commented Oct 8, 2019

答案:

1、Vue 应用运行时性能优化措施

(1)引入生产环境的 Vue 文件

(2)使用单文件组件预编译模板

(3)提取组件的 CSS 到单独到文件

(4)利用Object.freeze()提升性能

(5)扁平化 Store 数据结构

(6)合理使用持久化 Store 数据

(7)组件懒加载

2、Vue 应用加载性能优化措施

(1)服务端渲染 / 预渲染

(2)组件懒加载

@qiilee qiilee added the VUE label Oct 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant