-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
本项目将根据我写的<a href="https://blog.csdn.net/qq_37205708/article/details/89737524">这篇文章</a>进行优化 | ||
### 划分子域、DNS预解析 | ||
由于只有一个域名所以放弃 | ||
### CND加速 | ||
因域名仍然在备案中放弃 | ||
### 设置缓存---采纳 | ||
考虑对图片和html资源等设置缓存,正在研究如何设置...... | ||
### 图片懒加载---采纳 | ||
书城页有大量图片目前是一次性加载的,又因为购买的阿里云服务器的网速贼慢,所以考虑图片懒加载,考虑使用vue-lazyloader | ||
### 预加载-采纳 | ||
在阅读器部分可以考虑预先加载当前章节相邻的章节内容,这样切换时可以有更好的体验 | ||
### 链接位置 | ||
这个Webpack帮我们处理了 | ||
### 尽量减少回流与重绘---采纳 | ||
CSS3动画全部使用`transform:translate3D()`启动GPU加速 | ||
### 高效率的CSS,不要有过多的嵌套 | ||
懒得改CSS了...... | ||
### 减少DOM元素数量、DOM操作---采纳 | ||
考虑把使用JS操作DOM实现的动画换成canvas实现 | ||
### 函数节流---采纳 | ||
项目中监听了很多的vuex变量,考虑从连续的监听换成有间断的监听 | ||
### iconfont图标---已使用 |