Webcourse/14-前端进阶/09-lazyload&防抖动和节流阀.md
2020-04-19 18:24:43 +08:00

40 lines
531 B
JavaScript
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.

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