Web/14-前端性能优化/lazyload&防抖动和节流阀.md
2021-07-29 11:08:52 +08:00

48 lines
638 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: 07-自定义按键修饰符&自定义指令
publish: false
---
<ArticleTopAd></ArticleTopAd>
## lazyload
用的最多的场景是:
- 图片lazyload
- 组件lazyload
现在一般都单独做css的lazyload或者js的lazyload因为这种方式其实还是要加载图片和组件。
### 图片lazyload
图片一般是页面最大的资源,所以**非首屏**延迟加载很重要(让首屏尽快显示)。
## 防抖动Debouncing和节流阀Throtting
参考链接:
- [实例解析防抖动Debouncing和节流阀Throttling](http://www.css88.com/archives/7010)