Web/16-前端进阶/09-lazyload&防抖动和节流阀.md
2019-02-08 20:10:20 +08:00

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

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